summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-19 04:31:49 -0600
committerJeff Carr <[email protected]>2025-01-19 04:31:49 -0600
commit66dc174bbac6df66e2bf90d48007089db0428702 (patch)
treeedd314d883adcc22a6f223be7abfaaba34752d61 /main.go
parent3adf184a4ad6f9012c8055b1af453394844898cd (diff)
this needs reworkv0.0.33
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/main.go b/main.go
index d43e230..f324596 100644
--- a/main.go
+++ b/main.go
@@ -52,6 +52,13 @@ func main() {
okExit(check, "go.mod and go.sum restored from ~/go/pkg/mod/")
}
+ if argv.Strict {
+ if err := doStrict(check); err != nil {
+ badExit(check, err)
+ }
+ okExit(check, "go.mod seems clean")
+ }
+
if err := doMain(check); err != nil {
badExit(check, err)
}
@@ -106,9 +113,6 @@ func saveAsMetadata(repo *gitpb.Repo) error {
}
func doMain(repo *gitpb.Repo) error {
- if argv.Strict {
- return doStrict(repo)
- }
if argv.Force {
err := doForce(repo)
return err