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