opnsense-ports/security/osv-scanner/files/patch-internal_sourceanalysis_go.go
Franco Fichtner 00dc346cb4 */*: sync with upstream
Taken from: FreeBSD
2024-12-11 09:55:53 +01:00

11 lines
480 B
Go

--- internal/sourceanalysis/go.go.orig 1979-11-29 23:00:00 UTC
+++ internal/sourceanalysis/go.go
@@ -18,7 +18,7 @@ func goAnalysis(r reporter.Reporter, pkgs []models.Pac
)
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")