blob: 101ba13911e5dbfd21102a16d33ebee8cbcb8fe5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- internal/sourceanalysis/go.go.orig 1979-11-30 00:00:00 UTC
+++ internal/sourceanalysis/go.go
@@ -21,7 +21,7 @@ func goAnalysis(pkgs []models.PackageVulns, source mod
func goAnalysis(pkgs []models.PackageVulns, source models.SourceInfo) {
// 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 {
cmdlogger.Infof("Skipping call analysis on Go code since Go is not installed.")
|