mirror of
https://github.com/anchore/syft.git
synced 2026-11-04 00:16:38 +01:00
update to latest packageurl-go (#3347)
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
@@ -43,7 +43,7 @@ func Test_packageURL(t *testing.T) {
|
||||
Release: "r",
|
||||
Epoch: intRef(1),
|
||||
},
|
||||
expected: "pkg:rpm/centos/p@v-r?arch=a&epoch=1&distro=centos-7",
|
||||
expected: "pkg:rpm/centos/p@v-r?arch=a&distro=centos-7&epoch=1",
|
||||
},
|
||||
{
|
||||
name: "missing distro",
|
||||
@@ -67,7 +67,7 @@ func Test_packageURL(t *testing.T) {
|
||||
Release: "r",
|
||||
SourceRpm: "sourcerpm",
|
||||
},
|
||||
expected: "pkg:rpm/redhat/p@v-r?upstream=sourcerpm&distro=rhel-8.4",
|
||||
expected: "pkg:rpm/redhat/p@v-r?distro=rhel-8.4&upstream=sourcerpm",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user