summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-14 18:45:29 -0600
committerJeff Carr <[email protected]>2024-12-14 18:45:29 -0600
commitf43311c36c178ec0509846eda92b810f7e38799e (patch)
tree69d37bbef61220a2047f091159fa37820a249596 /exit.go
parenta8f7adee19c9087bf3434f7d4d6a4d205c7a1a42 (diff)
add --strict for release management purposesv0.0.6
Diffstat (limited to 'exit.go')
-rw-r--r--exit.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/exit.go b/exit.go
index 0f34ce3..81224c3 100644
--- a/exit.go
+++ b/exit.go
@@ -18,7 +18,8 @@ func badExit(check *gitpb.Repo, err error) {
log.DaemonMode(true)
log.Info("go-mod-clean failed: ", err, forge.GetGoSrc())
if check != nil {
- if argv.Pure {
+ if argv.Strict {
+ // if in strict mode, remove the go.mod and go.sum
eraseGoMod(check)
}
}