diff options
| author | Pierre Pronchery <pierre@freebsdfoundation.org> | 2024-07-21 18:09:41 +0100 |
|---|---|---|
| committer | Lewis Cook <lcook@FreeBSD.org> | 2024-07-21 18:12:45 +0100 |
| commit | 30da0a017216d43a32055450efdc0a759d62aeed (patch) | |
| tree | 42cb143d19c5eece1ec03a75ef7b27c2140ee036 /security/osv-scanner/files/patch-internal_sourceanalysis_go.go | |
| parent | science/R-cran-Epi: Update to 2.53 (diff) | |
security/osv-scanner: Update to 1.8.2
Sponsored by: The FreeBSD Foundation
Pull Request: https://github.com/freebsd/freebsd-ports/pull/282
Diffstat (limited to 'security/osv-scanner/files/patch-internal_sourceanalysis_go.go')
| -rw-r--r-- | security/osv-scanner/files/patch-internal_sourceanalysis_go.go | 11 |
1 files changed, 11 insertions, 0 deletions
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") |
