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 84556fb + 16a2107 commit a7993fbCopy full SHA for a7993fb
go/extractor/cli/go-autobuilder/go-autobuilder.go
@@ -291,7 +291,7 @@ func main() {
291
}
292
293
// Go 1.16 and later won't automatically attempt to update go.mod / go.sum during package loading, so try to update them here:
294
- if depMode == GoGetWithModules && semver.Compare(getEnvGoSemVer(), "1.16") >= 0 {
+ if modMode != ModVendor && depMode == GoGetWithModules && semver.Compare(getEnvGoSemVer(), "1.16") >= 0 {
295
// stat go.mod and go.sum
296
beforeGoModFileInfo, beforeGoModErr := os.Stat("go.mod")
297
if beforeGoModErr != nil {
0 commit comments