summaryrefslogtreecommitdiff
path: root/security/govulncheck/files/patch-internal_test_testenv.go
diff options
context:
space:
mode:
authorEinar Bjarni Halldórsson <einar@isnic.is>2025-05-26 15:19:48 +0100
committerNuno Teixeira <eduardo@FreeBSD.org>2025-05-26 15:30:11 +0100
commit2a9f1194d13498e7dba5087707270ef238ad3443 (patch)
tree25f963b2af879c8d8a2e9bfeb3dfe89c45da9c46 /security/govulncheck/files/patch-internal_test_testenv.go
parentsysutils/kopia: Update to 0.20.1 (diff)
security/govulncheck: New port: Database client and tools for the Go vulnerability database
Govulncheck reports known vulnerabilities that affect Go code. It uses static analysis of source code or a binary's symbol table to narrow down reports to only those that could affect the application. - Submitter becomes maintainer WWW: https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck PR: 285627
Diffstat (limited to 'security/govulncheck/files/patch-internal_test_testenv.go')
-rw-r--r--security/govulncheck/files/patch-internal_test_testenv.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/govulncheck/files/patch-internal_test_testenv.go b/security/govulncheck/files/patch-internal_test_testenv.go
new file mode 100644
index 000000000000..f28ee2f16524
--- /dev/null
+++ b/security/govulncheck/files/patch-internal_test_testenv.go
@@ -0,0 +1,11 @@
+--- internal/test/testenv.go.orig 2025-05-08 09:18:33 UTC
++++ internal/test/testenv.go
+@@ -14,7 +14,7 @@ func NeedsGoEnv(t testing.TB) {
+ func NeedsGoEnv(t testing.TB) {
+ t.Helper()
+
+- if _, err := exec.LookPath("go"); err != nil {
++ if _, err := exec.LookPath("%%GO_CMD%%"); err != nil {
+ t.Skip("skipping test: can't run go env")
+ }
+ }