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
after setup GO111MODULE=on, how to download a denpendency package in any directory #29256
Comments
import a library in you project and then in your project directory run |
before not use go modules, you can download a library in any directory by running go get xxxx |
Please clarify what you mean by “download”. What do you want to do with the package once you've downloaded it? |
nowmacbookpro:tmp fredlee$ go version i wantmacbookpro:tmp fredlee$ go version |
Use |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
i setup export GO111MODULE=off, i can download a denpendency package by go get xxx in anywhere
i setup export GO111MODULE=on, i can't download a denpendency package by go get xxx in anywhere
after create a tmp directory , and run go mod init tmp, and go get xxxx, it can download the xxx package
when i setup export GO111MODULE=on, i wish download a denpendency package by go get xxx in anywhere, can you tell me how to do ?
The text was updated successfully, but these errors were encountered: