From f43311c36c178ec0509846eda92b810f7e38799e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 14 Dec 2024 18:45:29 -0600 Subject: add --strict for release management purposes --- exit.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'exit.go') 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) } } -- cgit v1.2.3