summaryrefslogtreecommitdiff
path: root/goDep.redoGoMod.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-29 21:51:30 -0600
committerJeff Carr <[email protected]>2024-11-29 21:51:30 -0600
commit3d260a0219841f4835d6a0d0e370bde483f35d08 (patch)
treeb6e3b09004109581d618613d9c72d2049656074b /goDep.redoGoMod.go
parent4a79cccffd6cd20e42271eada567c4b8c0edc2f4 (diff)
updates for autogenpb
Diffstat (limited to 'goDep.redoGoMod.go')
-rw-r--r--goDep.redoGoMod.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/goDep.redoGoMod.go b/goDep.redoGoMod.go
index 6b6f222..81e861f 100644
--- a/goDep.redoGoMod.go
+++ b/goDep.redoGoMod.go
@@ -31,6 +31,12 @@ func (repo *Repo) MakeRedomod() (bool, error) {
log.Warn("go mod tidy failed", err)
return ok, err
}
+ // most things should build with golang after 1.20
+ // TODO: move this to autogenpb
+ if ok, err := repo.strictRun([]string{"go", "mod", "edit", "-go=1.20"}); !ok {
+ log.Warn("go mod edit failed", err)
+ return ok, err
+ }
log.Info("MakeRedomod() worked", repo.GoPath)
if repo.Exists("go.sum") {