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.
1 parent 570d3f4 commit 2930bd4Copy full SHA for 2930bd4
extractor/cli/go-autobuilder/go-autobuilder.go
@@ -290,7 +290,8 @@ func main() {
290
}
291
292
293
- if depMode == GoGetWithModules {
+ // 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 {
295
// stat go.mod and go.sum
296
beforeGoModFileInfo, beforeGoModErr := os.Stat("go.mod")
297
if beforeGoModErr != nil {
@@ -324,7 +325,6 @@ func main() {
324
325
log.Println("We have run `go mod tidy -e` and it altered go.sum. You may wish to check these changes into version control. ")
326
327
-
328
329
330
0 commit comments