chore: bump packageurl-go with new parsing rules (#3596)

* chore: bump packageurl-go with new parsing rules
* test: update expectedPURL in unit tests to match new % encoding
---------

Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
This commit is contained in:
Christopher Angelo Phillips
2025-01-17 16:20:14 -05:00
committed by GitHub
parent 254a915592
commit 8198a706d6
19 changed files with 39 additions and 39 deletions
@@ -152,7 +152,7 @@ func TestBuildGoPkgInfo(t *testing.T) {
Language: pkg.Go,
Type: pkg.GoModulePkg,
Version: "(devel)",
PURL: "pkg:golang/github.com/anchore/syft@(devel)",
PURL: "pkg:golang/github.com/anchore/syft@%28devel%29",
Locations: file.NewLocationSet(
file.NewLocationFromCoordinates(
file.Coordinates{
@@ -280,7 +280,7 @@ func TestBuildGoPkgInfo(t *testing.T) {
{
Name: "github.com/a/b/c",
Version: "(devel)",
PURL: "pkg:golang/github.com/a/b@(devel)#c",
PURL: "pkg:golang/github.com/a/b@%28devel%29#c",
Language: pkg.Go,
Type: pkg.GoModulePkg,
Locations: file.NewLocationSet(
@@ -932,7 +932,7 @@ func TestBuildGoPkgInfo(t *testing.T) {
Language: pkg.Go,
Type: pkg.GoModulePkg,
Version: "(devel)",
PURL: "pkg:golang/github.com/anchore/syft@(devel)",
PURL: "pkg:golang/github.com/anchore/syft@%28devel%29",
Locations: file.NewLocationSet(
file.NewLocationFromCoordinates(
file.Coordinates{