summaryrefslogtreecommitdiff
path: root/security/govulncheck/files/patch-internal_scan_run.go
diff options
context:
space:
mode:
Diffstat (limited to 'security/govulncheck/files/patch-internal_scan_run.go')
-rw-r--r--security/govulncheck/files/patch-internal_scan_run.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/govulncheck/files/patch-internal_scan_run.go b/security/govulncheck/files/patch-internal_scan_run.go
new file mode 100644
index 000000000000..4af9d3301b41
--- /dev/null
+++ b/security/govulncheck/files/patch-internal_scan_run.go
@@ -0,0 +1,11 @@
+--- internal/scan/run.go.orig 2025-05-08 09:21:10 UTC
++++ internal/scan/run.go
+@@ -87,7 +87,7 @@ func prepareConfig(ctx context.Context, cfg *config, c
+ }
+ }
+ if cfg.GoVersion == "" {
+- if out, err := exec.Command("go", "env", "GOVERSION").Output(); err == nil {
++ if out, err := exec.Command("%%GO_CMD%%", "env", "GOVERSION").Output(); err == nil {
+ cfg.GoVersion = strings.TrimSpace(string(out))
+ }
+ }