Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: document that filesystem-based replace directives require that the right hand side have a go.mod #30847
What version of Go are you using (
changed the title
Document that filesystem-based replace directives do require that the right hand side have a go.mod
Mar 14, 2019
This is likely related to #24110
@rsc states that this is "working as intended", but it doesn't seem obvious to me why the stated rationale applies - after all, go modules interop with non-go module adopting libraries fine outside of replace directives.
In fact without the replace directive, if I want to use the public, non-forked version of said dependency, go modules seems to work with it fine...
A related comment from Bryan: