-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: go.mod formatting drops unattached comments within blocks #33280
Comments
Btw, your |
It was a typo and was meant to be |
As it looks stale I'll investigate |
Given the following
Should we leave it as it is instead of collapsing into single line?
|
I've created a CL to fix this: https://go-review.googlesource.com/c/mod/+/541815 |
Change https://go.dev/cl/545695 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, happens with 1.12.6 too. Not tried with tip.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Executed
go mod edit -fmt
on the following. (The following is a minimal reproducible example of the actual go.mod file.)What did you expect to see?
Perhaps no change.
What did you see instead?
The commented disappeared after formatting.
The text was updated successfully, but these errors were encountered: