-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: mod tidy doesn't remove unused dependencies in go.sum, in same cases #37842
Labels
Comments
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
Reproduced with the testscript below:
But this seems to be a duplicate of #33008. |
Sorry. I checked the similar issues suggested by github before submiting the issue, but it #33008 was missing. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: