diff options
Diffstat (limited to 'prepareRelease.go')
| -rw-r--r-- | prepareRelease.go | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/prepareRelease.go b/prepareRelease.go index a50a8d7..26ce6da 100644 --- a/prepareRelease.go +++ b/prepareRelease.go @@ -29,15 +29,31 @@ func makePrepareRelease() { check.SetTargetVersion(curver) } - // on startup, run fixGoDeps() on every go.sum that didn't match - if argv.Fix { - all := me.forge.Repos.SortByGoPath() - for all.Scan() { - check := all.Next() + // run go-clean on everything not readonly + all = me.forge.Repos.SortByGoPath() + for all.Scan() { + check := all.Next() - if !me.forge.FinalGoDepsCheckOk(check) { - fixGodeps(check) - } + if me.forge.Config.IsReadOnly(check.GoPath) { + // can't release readonly repos + continue + } + + if ok, err := check.IsPrimitive(); !ok { + log.Info("something wrong with", check.GoPath, err) + // no go.sum file for these + continue + } + + if check.Exists("go.sum") { + // probably already ran + continue + } + + if !runGoClean(check) { + log.Info("go-clean FAILED. THIS IS BAD.", check.GoPath) + log.Info("go-clean FAILED. THIS IS BAD.", check.GoPath) + log.Info("go-clean FAILED. THIS IS BAD.", check.GoPath) } } @@ -45,6 +61,10 @@ func makePrepareRelease() { for all.Scan() { check := all.Next() + if me.forge.Config.IsReadOnly(check.GoPath) { + // can't release readonly repos + continue + } // if master != lastTag, always increment master := check.GetMasterVersion() lastTag := check.GetLastTag() |
