From 3d260a0219841f4835d6a0d0e370bde483f35d08 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 29 Nov 2024 21:51:30 -0600 Subject: updates for autogenpb --- goDep.redoGoMod.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'goDep.redoGoMod.go') 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") { -- cgit v1.2.3