opnsense-ports/security/osv-scanner/files/patch-internal_sourceanalysis_go.go
Franco Fichtner 92626e7bb9 */*: sync with upstream
Taken from: FreeBSD
2024-07-22 14:25:54 +02:00

11 lines
473 B
Go

--- 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")