-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: comment indicating module is an indirect dependency is not removed when the comment has no whitespace #45932
Comments
My guess is that this is caused by the call to |
Change https://golang.org/cl/316569 mentions this issue: |
…formatted When there is an // indirect comment next to a dependency that is not actually indirect; go mod tidy should remove it. This was not the case when the //indirect comment was badly formatted. We now check whether such a comment exists irrespective of the formatting. Updates golang/go#45932 Change-Id: I6a7dca23059a0aca6f8f940da975a0d79f701571 GitHub-Last-Rev: b884ee1 GitHub-Pull-Request: #3 Reviewed-on: https://go-review.googlesource.com/c/mod/+/316569 Reviewed-by: Bryan C. Mills <bcmills@google.com> Trust: Bryan C. Mills <bcmills@google.com> Trust: Jay Conrod <jayconrod@google.com>
Change https://golang.org/cl/316751 mentions this issue: |
Change https://golang.org/cl/317129 mentions this issue: |
I missed the 'go mod tidy' step in CL 316751 because I forgot to run the cmd/internal/moddeps test in long mode. 😞 Updates #45932 Change-Id: Ic3f9b303ad5798ecd8cb044d4b8c766aa820bf69 Reviewed-on: https://go-review.googlesource.com/c/go/+/317129 Trust: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> Reviewed-by: David Chase <drchase@google.com> TryBot-Result: Go Bot <gobot@golang.org>
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?
What did you expect to see?
//indirect
comment should be removed from the require stanzaWhat did you see instead?
//indirect
comment is replaced with a//ct
commentThe text was updated successfully, but these errors were encountered: