Closed myitcv closed 6 years ago
Off-by-one error in https://golang.org/cl/122404. Fix goes here: https://github.com/golang/go/blob/28502b5023b6ddbecf24c68f225762054882ebf5/src/cmd/go/internal/modcmd/mod.go#L403
We should add a test along with the fix. 🙂
Change https://golang.org/cl/123778 mentions this issue: cmd/go: fix module replace flag parsed bug
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No, working with tip.
What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
The JSON representation of the
go.mod
fileWhat did you see instead?
because the replace directive has incorrectly written the
go.mod
file:Notice the replace target
ithub.com/myitcv/gopherjs
/cc @rsc @bcmills