fix: golang PURL should include full module (#4395)

* fixed #4316 go mod with ver purl

Signed-off-by: Rez Moss <hi@rezmoss.com>

* go mod purl fixed, added func to handle go.mod

Signed-off-by: Rez Moss <hi@rezmoss.com>

* fix: use module name in PURL string everywhere

Signed-off-by: Keith Zantow <kzantow@gmail.com>

---------

Signed-off-by: Rez Moss <hi@rezmoss.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Co-authored-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
Rez Moss
2025-12-12 14:19:26 -05:00
committed by GitHub
co-authored by Keith Zantow
parent 4c38ee1932
commit e0b61a3ae3
9 changed files with 61 additions and 40 deletions
+2
View File
@@ -57,6 +57,7 @@ func Test_Config(t *testing.T) {
Proxies: []string{"https://my.proxy"},
NoProxy: []string{"my.private", "no.proxy"},
MainModuleVersion: DefaultMainModuleVersionConfig(),
UsePackagesLib: true,
},
},
{
@@ -84,6 +85,7 @@ func Test_Config(t *testing.T) {
Proxies: []string{"https://alt.proxy", "direct"},
NoProxy: []string{"alt.no.proxy"},
MainModuleVersion: DefaultMainModuleVersionConfig(),
UsePackagesLib: true,
},
},
}