summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-13 20:31:55 -0600
committerJeff Carr <[email protected]>2024-12-13 20:31:55 -0600
commite90127b54a7e86c1ff996a349f102ac5c27e049b (patch)
treec302a7bc28475b4e34e8b8639dee157a0ac43648 /main.go
parent22c29b3625f4fac9a345cc3734625f71cc90244e (diff)
attempt hacky fixv0.0.2
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.go b/main.go
index 6861e0e..bac1afb 100644
--- a/main.go
+++ b/main.go
@@ -168,12 +168,22 @@ func doMain(repo *gitpb.Repo) error {
}
if argv.Trim {
+ // the first time, it'll attempt to fix some stuff
+ cleanGoDepsCheckOk(repo)
// try to trim junk
if err := trimGoSum(repo); err != nil {
return err
}
+ repo.ParseGoSum()
}
+ /*
+ data, _ := repo.ReadFile("go.mod")
+ log.Info(string(data))
+ data, _ = repo.ReadFile("go.sum")
+ log.Info(string(data))
+ */
+
// check go.sum file
if err := cleanGoDepsCheckOk(repo); err != nil {
log.Info("forge.FinalGoDepsCheck() failed. boo. :", repo.GoPath)