-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: go get -u fails with local-only replacements #32567
Comments
Coincidentally, @jayconrod and I also noticed that this is broken in the context of https://golang.org/cl/180337. Any fix is probably too invasive for 1.13, but we're planning to overhaul replacements in general for 1.14. |
Hi, any fix or workaround for this? Testing this out with go 1.14.1 on darwin. I was usually able to update all dependencies with On the other hand, updating specific dependencies |
Not the best workaround in the world, but I just found that if replaced dependencies are temporarily removed from go.mod, then |
All of the private modules I use are just in a fictional So I tried to add the fictional domain to and then run Is it possible, that |
@microo8 This issue is specifically related to local replacements. It sounds like you're running into a different problem with private modules so please open a new issue instead. ( |
I have the private modules replaced with a local module
and that doesn't work. the mycompany.com is just fictional, there isn't a server on the url
|
@microo8 Thanks for that example. It does seem to be the same issue described here. The error is reported because the |
So I report the bug in a new issue. Thanks |
Change https://golang.org/cl/255046 mentions this issue: |
…semantic version Test this behavior incidentally in a test for ambiguous import errors. (I rediscovered the error when writing the new test.) For #32567 Updates #28806 Change-Id: I323f05145734e5cf99818b9f04d65075f7c0f787 Reviewed-on: https://go-review.googlesource.com/c/go/+/255046 Trust: Bryan C. Mills <[email protected]> Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Michael Matloob <[email protected]> Reviewed-by: Jay Conrod <[email protected]>
I believe this is fixed as of https://golang.org/cl/258220. @kenichi-fukushima, please try a |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
Please answer these questions before submitting your issue. Thanks!
What did you do?
Run
go get -u
in a module withreplace
with a local module.You can reproduce the problem by checking out this repository and run the command in
depending
directory.https://github.com/kenichi-fukushima/go-local-modules
What did you expect to see?
The command finishes successfully.
What did you see instead?
The command failed with this message.
System details
I got this error with 12.2/12.5 on Linux too.
The text was updated successfully, but these errors were encountered: