diff --git a/goConfig.go b/goConfig.go index 63562a2..cc2a5d6 100644 --- a/goConfig.go +++ b/goConfig.go @@ -144,6 +144,10 @@ func (rs *RepoStatus) MakeRedomod() (bool, error) { log.Log(REPO, "go mod tidy failed", err) return ok, err } + if ok, err := rs.strictRun([]string{"go", "mod", "edit", "-go=1.20"}); !ok { + log.Log(REPO, "go mod edit failed", err) + return ok, err + } log.Log(REPO, "MakeRedomod() worked", rs.GoPath()) if rs.Exists("go.sum") {