summaryrefslogtreecommitdiff
path: root/security/govulncheck/files/patch-internal_testenv_testenv.go
diff options
context:
space:
mode:
Diffstat (limited to 'security/govulncheck/files/patch-internal_testenv_testenv.go')
-rw-r--r--security/govulncheck/files/patch-internal_testenv_testenv.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/govulncheck/files/patch-internal_testenv_testenv.go b/security/govulncheck/files/patch-internal_testenv_testenv.go
new file mode 100644
index 000000000000..634a4a23fe50
--- /dev/null
+++ b/security/govulncheck/files/patch-internal_testenv_testenv.go
@@ -0,0 +1,11 @@
+--- internal/testenv/testenv.go.orig 2025-05-08 09:21:55 UTC
++++ internal/testenv/testenv.go
+@@ -100,7 +100,7 @@ func NeedsGoBuild(t testing.TB) {
+ if err := os.WriteFile(mainGo, []byte("package main\nfunc main() {}\n"), 0644); err != nil {
+ t.Fatal(err)
+ }
+- cmd := exec.Command("go", "build", "-o", os.DevNull, mainGo)
++ cmd := exec.Command("%%GO_CMD%%", "build", "-o", os.DevNull, mainGo)
+ cmd.Dir = dir
+ if err := cmd.Run(); err != nil {
+ goBuildErr = fmt.Errorf("%v: %v", cmd, err)