We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents feb3161 + 1afe845 commit b47c8e8Copy full SHA for b47c8e8
go/extractor/cli/go-autobuilder/go-autobuilder.go
@@ -318,7 +318,7 @@ func getNeedGopath(depMode DependencyInstallerMode, importpath string) bool {
318
319
func tryUpdateGoModAndGoSum(modMode ModMode, depMode DependencyInstallerMode) {
320
// Go 1.16 and later won't automatically attempt to update go.mod / go.sum during package loading, so try to update them here:
321
- if modMode != ModVendor && depMode == GoGetWithModules && semver.Compare(getEnvGoSemVer(), "1.16") >= 0 {
+ if modMode != ModVendor && depMode == GoGetWithModules && semver.Compare(getEnvGoSemVer(), "v1.16") >= 0 {
322
// stat go.mod and go.sum
323
beforeGoModFileInfo, beforeGoModErr := os.Stat("go.mod")
324
if beforeGoModErr != nil {
0 commit comments