-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: conditional warning if no root dependencies were found (#398)
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
- Loading branch information
1 parent
1d262ba
commit c8175bb
Showing
9 changed files
with
239 additions
and
86 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
70 changes: 70 additions & 0 deletions
70
tests/fixtures/json/1.4/bom_with_dependencies_hanging.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"$schema": "http://cyclonedx.org/schema/bom-1.4.schema.json", | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.4", | ||
"serialNumber": "urn:uuid:12345678-395b-41f5-a30f-1234567890ab", | ||
"version": 23, | ||
"metadata": { | ||
"component": { | ||
"bom-ref": "root-component", | ||
"name": "rootComponent", | ||
"type": "application" | ||
}, | ||
"timestamp": "2023-06-01T03:03:07+00:00" | ||
}, | ||
"components": [ | ||
{ | ||
"author": "Test Author", | ||
"bom-ref": "setuptools", | ||
"licenses": [ | ||
{ | ||
"expression": "MIT License" | ||
} | ||
], | ||
"name": "setuptools", | ||
"purl": "pkg:pypi/setuptools@50.3.2?extension=tar.gz", | ||
"type": "library", | ||
"version": "50.3.2" | ||
}, | ||
{ | ||
"bom-ref": "toml", | ||
"externalReferences": [ | ||
{ | ||
"comment": "No comment", | ||
"hashes": [ | ||
{ | ||
"alg": "SHA-256", | ||
"content": "806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b" | ||
} | ||
], | ||
"type": "distribution", | ||
"url": "https://cyclonedx.org" | ||
} | ||
], | ||
"hashes": [ | ||
{ | ||
"alg": "SHA-256", | ||
"content": "806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b" | ||
} | ||
], | ||
"name": "toml", | ||
"purl": "pkg:pypi/toml@0.10.2?extension=tar.gz", | ||
"type": "library", | ||
"version": "0.10.2" | ||
} | ||
], | ||
"dependencies": [ | ||
{ | ||
"ref": "root-component" | ||
}, | ||
{ | ||
"ref": "setuptools", | ||
"dependsOn": [ | ||
"toml" | ||
] | ||
}, | ||
{ | ||
"ref": "toml" | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.4" | ||
serialNumber="urn:uuid:12345678-395b-41f5-a30f-1234567890ab" | ||
version="23"> | ||
<metadata> | ||
<timestamp>2023-06-01T03:03:07+00:00</timestamp> | ||
<component type="application" bom-ref="root-component"> | ||
<name>rootComponent</name> | ||
</component> | ||
</metadata> | ||
<components> | ||
<component type="library" bom-ref="setuptools"> | ||
<author>Test Author</author> | ||
<name>setuptools</name> | ||
<version>50.3.2</version> | ||
<licenses> | ||
<expression>MIT License</expression> | ||
</licenses> | ||
<purl>pkg:pypi/setuptools@50.3.2?extension=tar.gz</purl> | ||
</component> | ||
<component type="library" bom-ref="toml"> | ||
<name>toml</name> | ||
<version>0.10.2</version> | ||
<hashes> | ||
<hash alg="SHA-256">806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b</hash> | ||
</hashes> | ||
<purl>pkg:pypi/toml@0.10.2?extension=tar.gz</purl> | ||
<externalReferences> | ||
<reference type="distribution"> | ||
<url>https://cyclonedx.org</url> | ||
<comment>No comment</comment> | ||
<hashes> | ||
<hash alg="SHA-256">806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b</hash> | ||
</hashes> | ||
</reference> | ||
</externalReferences> | ||
</component> | ||
</components> | ||
<dependencies> | ||
<dependency ref="root-component"/> | ||
<dependency ref="setuptools"> | ||
<dependency ref="toml"/> | ||
</dependency> | ||
<dependency ref="toml"/> | ||
</dependencies> | ||
</bom> | ||
|
This file contains 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
This file contains 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
Oops, something went wrong.