summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-03 13:25:00 -0600
committerJeff Carr <[email protected]>2024-12-03 13:25:00 -0600
commit18905d7cf7ed2e2eb15f7f668c0ecbfcd6b94ec0 (patch)
tree27bec7cb3b7d1f6a811b32fb2e5eb30d6dc6b119
parentaec1833fe69af27dc5a77f652b1a02af3097d9e9 (diff)
even with this, go mod tidy still DOWNLOADS STUPID OLD go.sum filesv0.0.21
-rw-r--r--goDep.redoGoMod.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/goDep.redoGoMod.go b/goDep.redoGoMod.go
index de689fd..8bb8058 100644
--- a/goDep.redoGoMod.go
+++ b/goDep.redoGoMod.go
@@ -10,6 +10,15 @@ import (
"go.wit.com/log"
)
+// remove every go.mod and go.sum
+// testing to see where this stuff is coming from
+func (repo *Repo) EraseGoMod() {
+ // unset the go development ENV var to generate release files
+ if ok, err := repo.strictRun([]string{"rm", "-f", "go.mod", "go.sum"}); !ok {
+ log.Warn("rm go.mod go.sum failed", err)
+ }
+}
+
// poor name perhaps. It's because in most of these
// repos you can also type "make redomod" to do the same thing
// since it's a Makefile task that is also useful to be able to run