diff --git a/main.go b/main.go index f2d2901..8d0846b 100644 --- a/main.go +++ b/main.go @@ -107,6 +107,7 @@ func doMain(repo *gitpb.Repo) error { // skip restore if --force if argv.Force { repo.Run([]string{"git", "notes", "remove"}) + eraseGoMod(repo) } // erase the go.mod and go.sum files cname := repo.GetCurrentBranchName()