fix primary comp dangling refs - #334
Open
viveksahu26 wants to merge 5 commits into
Open
Conversation
Signed-off-by: Vivek Kumar Sahu <vivekkumarsahu650@gmail.com>
Signed-off-by: Vivek Kumar Sahu <vivekkumarsahu650@gmail.com>
Signed-off-by: Vivek Kumar Sahu <vivekkumarsahu650@gmail.com>
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
Signed-off-by: Vivek Kumar Sahu <vivekkumarsahu650@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #330
THis PR adds the following changes:
.gitattributesfor end-of-line,eolaslfto avoid differenteolfor windows/ubuntu. This is important because there is a test case foreditcommand which compare line by line, and ifeoldiffers then test fails. Therefore it is necessary to seteolsame of all os.Examples:
$ go run main.go assemble --flatMerge --primary primary.cdx.json \ --outputSpecVersion 1.6 extra.cdx.json -o out-new.cdx.jsono/p:
{ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json", "bomFormat": "CycloneDX", "specVersion": "1.6", "serialNumber": "urn:uuid:b0755551-5205-4654-a0d0-5a16978fb829", "version": 1, "metadata": { "timestamp": "2026-07-21T06:59:37Z", "tools": { "components": [ { "type": "application", "supplier": { "name": "Interlynk", "url": [ "https://interlynk.io" ], "contact": [ { "email": "support@interlynk.io" } ] }, "name": "sbomasm", "version": "devel", "description": "Assembler \u0026 Editor for your sboms", "licenses": [ { "license": { "id": "Apache-2.0" } } ] } ] }, "component": { "bom-ref": "myapp@1.0.0", "type": "application", "name": "myapp", "version": "1.0.0" }, "licenses": [ { "license": { "id": "CC-BY-1.0" } } ] }, "components": [ { "bom-ref": "pkg:npm/extra@2.0.0", "type": "library", "name": "extra", "version": "2.0.0", "purl": "pkg:npm/extra@2.0.0" }, { "bom-ref": "pkg:pypi/leftpad@1.3.0", "type": "library", "name": "leftpad", "version": "1.3.0", "purl": "pkg:pypi/leftpad@1.3.0" } ], "dependencies": [ { "ref": "myapp@1.0.0", "dependsOn": [ "pkg:pypi/leftpad@1.3.0", "pkg:npm/extra@2.0.0" ] } ] }