From 30da0a017216d43a32055450efdc0a759d62aeed Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 21 Jul 2024 18:09:41 +0100 Subject: security/osv-scanner: Update to 1.8.2 Sponsored by: The FreeBSD Foundation Pull Request: https://github.com/freebsd/freebsd-ports/pull/282 --- .../osv-scanner/files/patch-internal_sourceanalysis_go.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 security/osv-scanner/files/patch-internal_sourceanalysis_go.go (limited to 'security/osv-scanner/files/patch-internal_sourceanalysis_go.go') diff --git a/security/osv-scanner/files/patch-internal_sourceanalysis_go.go b/security/osv-scanner/files/patch-internal_sourceanalysis_go.go new file mode 100644 index 000000000000..963201cbdd44 --- /dev/null +++ b/security/osv-scanner/files/patch-internal_sourceanalysis_go.go @@ -0,0 +1,11 @@ +--- internal/sourceanalysis/go.go.orig 2024-06-21 19:21:07.662367000 +0200 ++++ internal/sourceanalysis/go.go 2024-06-21 19:21:27.715630000 +0200 +@@ -18,7 +18,7 @@ + ) + + func goAnalysis(r reporter.Reporter, pkgs []models.PackageVulns, source models.SourceInfo) { +- cmd := exec.Command("go", "version") ++ cmd := exec.Command("go%%GO_SUFFIX%%", "version") + _, err := cmd.Output() + if err != nil { + r.Infof("Skipping call analysis on Go code since Go is not installed.\n") -- cgit v1.2.3