summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-11 13:51:06 -0600
committerJeff Carr <[email protected]>2024-12-11 13:51:06 -0600
commitfba217e92ae1c6cce2faf04f639327f19ce0a5cf (patch)
tree08f82e377d74e8ee8d57d228437e302fb8eacd58 /main.go
parent875435bc025e3b07d2f4a3fed50e78b9be58390a (diff)
minor
Diffstat (limited to 'main.go')
-rw-r--r--main.go15
1 files changed, 10 insertions, 5 deletions
diff --git a/main.go b/main.go
index 7fefbb8..c3a1d0d 100644
--- a/main.go
+++ b/main.go
@@ -69,14 +69,19 @@ func main() {
badExit(err)
}
+ // try to trim junk
+ if err := forge.TrimGoSum(check); err != nil {
+ badExit(err)
+ }
+
// check go.sum file
- if err := forge.CleanGoDepsCheckOk(check); err == nil {
- log.Info("forge.FinalGoDepsCheck() worked :", check.GoPath)
- okExit(check.GoPath + " go.sum seems clean")
- } else {
+ if err := forge.CleanGoDepsCheckOk(check); err != nil {
log.Info("forge.FinalGoDepsCheck() failed. boo. :", check.GoPath)
badExit(err)
}
+
+ log.Info("forge.FinalGoDepsCheck() worked :", check.GoPath)
+ okExit(check.GoPath + " go.sum seems clean")
}
func findPwdRepo() *gitpb.Repo {
@@ -104,6 +109,6 @@ func okExit(thing string) {
}
func badExit(err error) {
- log.Info("Finished go-clean with error", err, forge.GetGoSrc())
+ log.Info("go-clean failed: ", err, forge.GetGoSrc())
os.Exit(-1)
}