Merge pull request #19249 from github/mbg/go/fix-getpkginfo-decerr

Go: Fix `err` instead of `decErr` in `GetPkgsInfo`
This commit is contained in:
Michael B. Gale
2025-04-08 14:21:14 +01:00
committed by GitHub

View File

@@ -259,7 +259,7 @@ func GetPkgsInfo(patterns []string, includingDeps bool, extractTests bool, flags
break
}
if decErr != nil {
log.Printf("Error decoding output of go list -json: %s", err.Error())
log.Printf("Error decoding output of go list -json: %s", decErr.Error())
return nil, decErr
}
pkgAbsDir, err := filepath.Abs(pkgInfo.Dir)