diff options
Diffstat (limited to 'security/govulncheck/files/patch-internal_test_packages.go')
-rw-r--r-- | security/govulncheck/files/patch-internal_test_packages.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/security/govulncheck/files/patch-internal_test_packages.go b/security/govulncheck/files/patch-internal_test_packages.go new file mode 100644 index 000000000000..3cc85bdd22a6 --- /dev/null +++ b/security/govulncheck/files/patch-internal_test_packages.go @@ -0,0 +1,11 @@ +--- internal/test/packages.go.orig 2025-05-08 09:19:24 UTC ++++ internal/test/packages.go +@@ -13,7 +13,7 @@ func VerifyImports(t *testing.T, allowed ...string) { + ) + + func VerifyImports(t *testing.T, allowed ...string) { +- if _, err := exec.LookPath("go"); err != nil { ++ if _, err := exec.LookPath("%%GO_CMD%%"); err != nil { + t.Skipf("skipping: %v", err) + } + cfg := &packages.Config{Mode: packages.NeedImports | packages.NeedDeps} |