Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-12-13 04:13:33 -06:00
parent 0de08f72ef
commit da4f5402b3
2 changed files with 5 additions and 5 deletions

View File

@ -101,7 +101,7 @@ func runGoClean(check *gitpb.Repo) bool {
// check if the package dependancies changed, if so, re-publish // check if the package dependancies changed, if so, re-publish
check.GoDeps = nil check.GoDeps = nil
cmd := []string{"go-clean", "--auto"} cmd := []string{"go-mod-clean"}
log.Info("Running", cmd, "in", check.GoPath) log.Info("Running", cmd, "in", check.GoPath)
result := check.RunRealtime(cmd) result := check.RunRealtime(cmd)
if result.Error != nil { if result.Error != nil {

View File

@ -29,7 +29,7 @@ func makePrepareRelease() {
check.SetTargetVersion(curver) check.SetTargetVersion(curver)
} }
// run go-clean on everything not readonly // run go-mod-clean on everything not readonly
all = me.forge.Repos.SortByGoPath() all = me.forge.Repos.SortByGoPath()
for all.Scan() { for all.Scan() {
check := all.Next() check := all.Next()
@ -51,9 +51,9 @@ func makePrepareRelease() {
} }
if !runGoClean(check) { if !runGoClean(check) {
log.Info("go-clean FAILED. THIS IS BAD.", check.GoPath) log.Info("go-mod-clean FAILED. THIS IS BAD.", check.GoPath)
log.Info("go-clean FAILED. THIS IS BAD.", check.GoPath) log.Info("go-mod-clean FAILED. THIS IS BAD.", check.GoPath)
log.Info("go-clean FAILED. THIS IS BAD.", check.GoPath) log.Info("go-mod-clean FAILED. THIS IS BAD.", check.GoPath)
} }
} }