/ go Public
cmd/go: go mod edit does not sort resulting go.mod file with multiline replace block #32359
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
follow-up on #30897 regading
go mod edit)
What version of Go are you using (
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
What did you do?
ran the following command with an existing
go.modfile that include a multiline
go mod edit -email@example.com'
What did you expect to see?
the new replacement added in the existing multiline
replace ( [...] )block in the sorted order
What did you see instead?
The following line appended at the end of the
go.modfile - therefore not inside the existing
replaceblock and not sorted with other entries:
replace github.com/google/go-github/v25 => git.myxyz.com/mirror-github/google--go-github/v25 v25.0.4
The text was updated successfully, but these errors were encountered: