-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: second parameter of replace is a network package, it behavior needs to be like require #26648
Comments
When retesting this problem, I found out if:
the
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:
try
The replace do not take effect. Can anyone tell me the true usage? |
CC @bcmills |
If you use
(#26602 notwithstanding) 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. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What did you do?
this is
go.mod
:execute the command
go build
:if the version of the second parameter is write as
v0.0.0
:it's actually trying to find
v0.0.0
:As the title says, it's a bug.
The text was updated successfully, but these errors were encountered: