aboutsummaryrefslogtreecommitdiff
path: root/security/osv-scanner/files/patch-internal_sourceanalysis_go.go
diff options
context:
space:
mode:
Diffstat (limited to 'security/osv-scanner/files/patch-internal_sourceanalysis_go.go')
-rw-r--r--security/osv-scanner/files/patch-internal_sourceanalysis_go.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/security/osv-scanner/files/patch-internal_sourceanalysis_go.go b/security/osv-scanner/files/patch-internal_sourceanalysis_go.go
index 04a027230126..024b5e0dda44 100644
--- a/security/osv-scanner/files/patch-internal_sourceanalysis_go.go
+++ b/security/osv-scanner/files/patch-internal_sourceanalysis_go.go
@@ -1,11 +1,11 @@
---- internal/sourceanalysis/go.go.orig 1979-11-30 03:00:00 UTC
+--- internal/sourceanalysis/go.go.orig 2025-09-13 17:59:56 UTC
+++ internal/sourceanalysis/go.go
-@@ -19,7 +19,7 @@ func goAnalysis(pkgs []models.PackageVulns, source mod
- )
+@@ -21,7 +21,7 @@ func goAnalysis(pkgs []models.PackageVulns, source mod
func goAnalysis(pkgs []models.PackageVulns, source models.SourceInfo) {
-- cmd := exec.Command("go", "version")
-+ cmd := exec.Command("go%%GO_SUFFIX%%", "version")
+ // TODO: This will be moved to enrichers which does have context.
+- cmd := exec.CommandContext(context.TODO(), "go", "version")
++ cmd := exec.CommandContext(context.TODO(), "go%%GO_SUFFIX%%", "version")
_, err := cmd.Output()
if err != nil {
- slog.Info("Skipping call analysis on Go code since Go is not installed.")
+ cmdlogger.Infof("Skipping call analysis on Go code since Go is not installed.")