You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
perillo
changed the title
cmd/go: mod tidy don't remove unused dependencies in go.sum, in same cases
cmd/go: mod tidy doesn't remove unused dependencies in go.sum, in same cases
Mar 13, 2020
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
golang.org/x/mod/module
. Invokego build
.golang.org/x/xerrors
. Since the module is already ingo.sum
, the file is not modified. Invokego build
.go get -u
. A new version ofgolang.org/x/xerrors
is added togo.sum
.go mod tidy
;go.sum
is not modified.go.sum
and invokego mod tidy
again;go.sum
is modified.Here is the full
git log --oneline -p go.*
output, with empty lines separating commits:Thanks.
The text was updated successfully, but these errors were encountered: