Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: second parameter of replace is a network package, it behavior needs to be like require #26648
What version of Go are you using (
changed the title
cmd/go: second parameters of replace is a network package must also have go.mod?
Jul 27, 2018
When retesting this problem, I found out if:
Obviously the second parameter of replace is same with the behavior of require.
The real problem is
even if I import
When I try use this conclusion on replace, I was frustrated again:
The replace do not take effect.
Can anyone tell me the true usage?
If you use
The same is true for your
The fact that we attempt a network fetch despite the replacement is #26241.
With the issue of module path vs. package path cleared up, I believe that this issue is a duplicate of that one. Please let me know if there are any remaining issues reported here that I've missed.