Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/go: go get -u fails with local-only replacements #32567
Please answer these questions before submitting your issue. Thanks!
What did you do?
You can reproduce the problem by checking out this repository and run the command in
What did you expect to see?
The command finishes successfully.
What did you see instead?
The command failed with this message.
I got this error with 12.2/12.5 on Linux too.
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
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
…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@example.com> Run-TryBot: Bryan C. Mills <firstname.lastname@example.org> TryBot-Result: Go Bot <email@example.com> Reviewed-by: Michael Matloob <firstname.lastname@example.org> Reviewed-by: Jay Conrod <email@example.com>