even with this, go mod tidy still DOWNLOADS STUPID OLD go.sum files
This commit is contained in:
parent
aec1833fe6
commit
18905d7cf7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue