-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Closed
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAgeGoCommandcmd/gocmd/goNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.modules
Milestone
Description
What version of Go are you using (go version)?
$ go version go version devel +f0c383b833 Wed May 1 16:53:19 2019 +0000 linux/amd64
Does this issue reproduce with the latest release?
Yes
What did you do?
Read go help modules and go help go.mod.
What did you expect to see?
Some discussion of what replacements are and what they do.
What did you see instead?
The only documentation I can find is these lines in go help go.mod:
replace bad/thing v1.4.5 => good/thing v1.4.5
replace, to replace a module version with a different module version.
Exclude and replace apply only in the main module's go.mod and are ignored
in dependencies. See https://research.swtch.com/vgo-mvs for details.
I think there's probably more to say about how replace works. For example, it doesn't explicitly state that the thing to replace is on the left side of the arrow. It also doesn't mention that the version on the left is optional.
Metadata
Metadata
Assignees
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAgeGoCommandcmd/gocmd/goNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.modules