forked from anchore/syft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: deterministic java purls (anchore#2170)
Previously, which PURL was generated depended on the order of key iteration in maps. Also update an integ test that was apparently only passing because of the previous issue. Signed-off-by: Will Murphy <[email protected]>
- Loading branch information
1 parent
188701e
commit b56d9ef
Showing
3 changed files
with
6 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,9 +76,9 @@ var expectedPURLs = map[string]string{ | |
"[email protected]": "pkg:maven/org.jvnet.hudson/[email protected]", | ||
"[email protected]": "pkg:maven/commons-lang/[email protected]", | ||
"[email protected]": "pkg:maven/commons-lang/[email protected]", | ||
"[email protected]": "pkg:maven/org.apache.commons.logging/[email protected]", | ||
"[email protected]": "pkg:maven/org.apache.commons.logging/[email protected]", | ||
"[email protected]": "pkg:maven/commons-logging/[email protected]", | ||
"[email protected]": "pkg:maven/commons-logging/[email protected]", // see https://mvnrepository.com/artifact/commons-logging/commons-logging/1.0.4 | ||
"[email protected]": "pkg:maven/commons-logging/[email protected]", // see https://mvnrepository.com/artifact/commons-logging/commons-logging/1.1 | ||
"[email protected]": "pkg:maven/commons-logging/[email protected]", // see https://mvnrepository.com/artifact/commons-logging/commons-logging/1.1.1 | ||
"[email protected]": "pkg:maven/commons-pool/[email protected]", | ||
"[email protected]": "pkg:maven/org.jvnet.hudson/[email protected]", | ||
"[email protected]": "pkg:maven/org.jvnet.hudson.plugins/[email protected]", | ||
|