/ go Public
cmd/go: document that filesystem-based replace directives require that the right hand side have a go.mod #30847
Documentation modules NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
Does this issue reproduce with the latest release?
I believe 1.12 is the latest release
What operating system and processor architecture are you using (
What did you do?
At work we internally have a fork of a particular module - call it
foo. We have a fork of
foointernally for some minor changes. I had the fork checked out at my desired branch at
./grant_modules_hack/vendor/foo. (I was attempting to work around a private repo problem at the time).
I added this replace directive:
What did you expect to see?
I expected this to work, with, say,
What did you see instead?
@thepudds confirmed to me that filesystem-based
replacedirectives do require that the right hand side have a
This should definitely be documented somewhere: I don't see this caveat listed anywhere here https://github.com/golang/go/wiki/Modules#when-should-i-use-the-replace-directive
The text was updated successfully, but these errors were encountered: