cmd/go: go.mod formatting drops unattached comments within blocks #33280
Labels
help wanted
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
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: