summaryrefslogtreecommitdiff
path: root/security/govulncheck/files/patch-internal_testenv_testenv.go
blob: 634a4a23fe50ba867a39ebb9066db8b53fdc4c53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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)