use go-mod-clean

This commit is contained in:
Jeff Carr 2024-12-13 12:35:39 -06:00
parent da4f5402b3
commit 02bce38b78
1 changed files with 3 additions and 1 deletions

View File

@ -203,7 +203,9 @@ func doPublishVersion() bool {
if !shell.Exists(testf) {
pb := me.forge.Repos.FindByGoPath("go.wit.com/apps/guireleaser")
if pb != nil {
pb.RedoGoMod() // hack for reset on guireleaser while publishing
if err := pb.RunStrict([]string{"go-mod-clean"}); err != nil {
log.Info("go-mod-clean failed", err)
}
}
if !shell.Exists(testf) {
log.Info("go.sum missing", testf)