-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: 1.11beta2 cannot find module providing package #26695
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
Comments
@udhos Did you run these steps before pushing your repo to github? Right now, your repo works fine and it does not reproduce the error when following the steps above. This is likely because Having one |
Yes, I tested the steps to reproduce it before opening the issue.
|
When I hit this issue, I was actually trying to figure out how to host two distinct modules at the same git repository while also importing a specific package from a module. I mean:
As far as I can tell, such a layout is supported, right? |
@marwan-at-work I have just tested the steps with a new user and it indeed worked as expected... So I guess there is something cached in the homedir of the old user... |
I can reproduce with @rsc 's A Tour of Versioned Go
|
I believe this bug is fixed in 90066bf |
This seems to work for me (with git 2.18.0, which suggests that @sillyousu's theory is correct).
|
(But please do let us know if it's still broken at head, or at go1.11beta3 whenever that comes out.) |
I don't think it's a git issue, because I am running git 2.18.0 as well. |
You may need to run |
|
What version of Go are you using (
go version
)?go version go1.11beta2 linux/amd64
Does this issue reproduce with the latest release?
Yes, it affects go1.11beta2.
What operating system and processor architecture are you using (
go env
)?What did you do?
Tried to build a trivial application 'modapp' which depends on specific package 'lib' from trivial module 'modlib'. The repository is tagged as 'modlib/v1.0.0'.
I have posted full description of the issue on Stackoverflow: https://stackoverflow.com/questions/51560387/how-to-import-specific-package-from-go-module
A quick way to reproduce is:
I have been told the git version may be important:
What did you expect to see?
modapp should have been compiled and installed as ~/go/bin/modapp without errors.
However I may well be doing something wrong.
What did you see instead?
The text was updated successfully, but these errors were encountered: