-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: cannot find module providing package #26353
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
I tracked down the issue with for e.g. On systems with I've build a quick workaround, but I'm not sure if this is a good solution. Maybe @rsc who introduced this lines within a4111b184cac70ec5478914d3b98168dd34bcf4a could tell us more. name := strings.Replace(zf.Name, "/", string(os.PathSeparator), -1)
if filepath.Clean(zf.Name) != name || strings.HasPrefix(zf.Name[len(prefix)+1:], "/") {
return fmt.Errorf("unzip %v: invalid file name %s", zipfile, zf.Name)
} |
Fixed in golang.org/cl/123580, sorry about the trouble. |
@rsc just to be curious, any approximate release date for this beta2? Thanks for your work 😃 |
I'm still seeing this in go1.11beta2. Steps to reproduce (using docker container to isolate..)
Then inside the container:
Output:
Thanks, |
I am guessing due to git version 2.7 which is there in 16.04. The fix for that is in latest master. Either try with master or wait for an RC to get out. |
Didn't get a chance to try master, but I was able to fix it by upgrading git from 2.7.4 to 2.18.0 On the same container:
Thank you again. |
is the fix available in 1.11.2? if not in which release would this be available? |
Yes. |
I installed go
|
Note that your git version still needs to be greater than 1.7.2. If it is, then this is most probably a different issue. Please open a new bug with the exact steps to reproduce your issue. Thank you. |
@agnivade yes the git version is |
Please open a new issue. Thanks. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10 windows/amd64 go:2018-02-20.1
(Downloaded today)
Does this issue reproduce with the latest release?
Yes
What did you do?
vgo mod -sync
after initializing the go.modWith a simple HelloWorld program:
What did you expect to see?
Successfully downloading dependencies
What did you see instead?
Moreover I simplified the issue with a HelloWorld program with just 1 import, but that's the same in my real project with more dependencies (the ones not described below are working well):
Thank you 😃
The text was updated successfully, but these errors were encountered: