even with this, go mod tidy still DOWNLOADS STUPID OLD go.sum files

This commit is contained in:
Jeff Carr 2024-12-03 13:25:00 -06:00
parent aec1833fe6
commit 18905d7cf7
1 changed files with 9 additions and 0 deletions

View File

@ -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