-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: sort relationships in SPDX output (#1350)
- Loading branch information
Showing
12 changed files
with
135 additions
and
38 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
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
79 changes: 79 additions & 0 deletions
79
syft/formats/spdxtagvalue/test-fixtures/snapshot/TestSPDXRelationshipOrder.golden
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,79 @@ | ||
SPDXVersion: SPDX-2.3 | ||
DataLicense: CC0-1.0 | ||
SPDXID: SPDXRef-DOCUMENT | ||
DocumentName: user-image-input | ||
DocumentNamespace: https://anchore.com/syft/image/user-image-input-cc20e416-9c74-401c-b4aa-245556bada5e | ||
LicenseListVersion: 3.18 | ||
Creator: Organization: Anchore, Inc | ||
Creator: Tool: syft-v0.42.0-bogus | ||
Created: 2022-11-19T13:48:30Z | ||
|
||
##### Unpackaged files | ||
|
||
FileName: /f1 | ||
SPDXID: SPDXRef-5265a4dde3edbf7c | ||
FileType: OTHER | ||
LicenseConcluded: NOASSERTION | ||
|
||
FileName: /z1/f5 | ||
SPDXID: SPDXRef-839d99ee67d9d174 | ||
FileType: OTHER | ||
LicenseConcluded: NOASSERTION | ||
|
||
FileName: /a1/f6 | ||
SPDXID: SPDXRef-9c2f7510199b17f6 | ||
FileType: OTHER | ||
LicenseConcluded: NOASSERTION | ||
|
||
FileName: /d2/f4 | ||
SPDXID: SPDXRef-c641caa71518099f | ||
FileType: OTHER | ||
LicenseConcluded: NOASSERTION | ||
|
||
FileName: /d1/f3 | ||
SPDXID: SPDXRef-c6f5b29dca12661f | ||
FileType: OTHER | ||
LicenseConcluded: NOASSERTION | ||
|
||
FileName: /f2 | ||
SPDXID: SPDXRef-f9e49132a4b96ccd | ||
FileType: OTHER | ||
LicenseConcluded: NOASSERTION | ||
|
||
##### Package: package-2 | ||
|
||
PackageName: package-2 | ||
SPDXID: SPDXRef-Package-deb-package-2-958443e2d9304af4 | ||
PackageVersion: 2.0.1 | ||
PackageDownloadLocation: NOASSERTION | ||
FilesAnalyzed: false | ||
PackageSourceInfo: acquired package info from DPKG DB: /somefile-2.txt | ||
PackageLicenseConcluded: NONE | ||
PackageLicenseDeclared: NONE | ||
PackageCopyrightText: NOASSERTION | ||
ExternalRef: SECURITY cpe23Type cpe:2.3:*:some:package:2:*:*:*:*:*:*:* | ||
ExternalRef: PACKAGE-MANAGER purl pkg:deb/debian/[email protected] | ||
|
||
##### Package: package-1 | ||
|
||
PackageName: package-1 | ||
SPDXID: SPDXRef-Package-python-package-1-66ba429119b8bec6 | ||
PackageVersion: 1.0.1 | ||
PackageDownloadLocation: NOASSERTION | ||
FilesAnalyzed: false | ||
PackageSourceInfo: acquired package info from installed python package manifest file: /somefile-1.txt | ||
PackageLicenseConcluded: MIT | ||
PackageLicenseDeclared: MIT | ||
PackageCopyrightText: NOASSERTION | ||
ExternalRef: SECURITY cpe23Type cpe:2.3:*:some:package:1:*:*:*:*:*:*:* | ||
ExternalRef: PACKAGE-MANAGER purl a-purl-1 | ||
|
||
##### Relationships | ||
|
||
Relationship: SPDXRef-Package-python-package-1-66ba429119b8bec6 CONTAINS SPDXRef-5265a4dde3edbf7c | ||
Relationship: SPDXRef-Package-python-package-1-66ba429119b8bec6 CONTAINS SPDXRef-839d99ee67d9d174 | ||
Relationship: SPDXRef-Package-python-package-1-66ba429119b8bec6 CONTAINS SPDXRef-9c2f7510199b17f6 | ||
Relationship: SPDXRef-Package-python-package-1-66ba429119b8bec6 CONTAINS SPDXRef-c641caa71518099f | ||
Relationship: SPDXRef-Package-python-package-1-66ba429119b8bec6 CONTAINS SPDXRef-c6f5b29dca12661f | ||
Relationship: SPDXRef-Package-python-package-1-66ba429119b8bec6 CONTAINS SPDXRef-f9e49132a4b96ccd | ||
|
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
Binary file modified
BIN
+0 Bytes
(100%)
syft/formats/spdxtagvalue/test-fixtures/snapshot/stereoscope-fixture-image-simple.golden
Binary file not shown.