Can't go mod tidy
sithu-go opened this issue · 3 comments
sithu-go commented
There are many moved packages and renamed packages like
github.com/mitchellh/osext to github.com/kardianos/osext
github.com/googleapis/gnostic to github.com/google/gnostic
github.com/armon/go-metrics to github.com/hashicorp/go-metrics
yedf2 commented
can not reproduce your problem. I can run go mod tidy
successfully.
sithu-go commented
Btw, I'm using 1.21.5
can you clean go mod first?
go clean -modcache
or manually delete mod folder?
The initial error After I have cloned.
verifying github.com/agiledragon/gomonkey/v2@v2.2.0: checksum mismatch
downloaded: h1:SXUF5UN7ZH67ORjFK+e1FoFRZczCSVUvwTywNY2+fcg=
go.sum: h1:QJWqpdEhGV/JJy70sZ/LDnhbSlMrqHAWHcNOjz1kyuI=
SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.
yedf2 commented
still can not reproduce your problem.
my following commands succeeded
go1.22.2 clean -modcache
go1.22.2 run main.go