diff options
Diffstat (limited to 'goDep.redoGoMod.go')
| -rw-r--r-- | goDep.redoGoMod.go | 6 |
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") { |
