summaryrefslogtreecommitdiff
path: root/security/govulncheck/files/patch-internal_vulncheck_packages.go
diff options
context:
space:
mode:
Diffstat (limited to 'security/govulncheck/files/patch-internal_vulncheck_packages.go')
-rw-r--r--security/govulncheck/files/patch-internal_vulncheck_packages.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/govulncheck/files/patch-internal_vulncheck_packages.go b/security/govulncheck/files/patch-internal_vulncheck_packages.go
new file mode 100644
index 000000000000..d9e7038ebc9c
--- /dev/null
+++ b/security/govulncheck/files/patch-internal_vulncheck_packages.go
@@ -0,0 +1,11 @@
+--- internal/vulncheck/packages.go.orig 2025-05-08 09:26:39 UTC
++++ internal/vulncheck/packages.go
+@@ -34,7 +34,7 @@ func NewPackageGraph(goVersion string) *PackageGraph {
+ }
+
+ goRoot := ""
+- if out, err := exec.Command("go", "env", "GOROOT").Output(); err == nil {
++ if out, err := exec.Command("%%GO_CMD%%", "env", "GOROOT").Output(); err == nil {
+ goRoot = strings.TrimSpace(string(out))
+ }
+ stdlibModule := &packages.Module{