Skip to content
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: Add go get flag to download to vendor directory #11726

Closed
mattfarina opened this issue Jul 15, 2015 · 2 comments
Closed

cmd/go: Add go get flag to download to vendor directory #11726

mattfarina opened this issue Jul 15, 2015 · 2 comments

Comments

@mattfarina
Copy link

go get downloads into the GOPATH. It would be useful to have a flag that downloads the package to the new vendor directory.

@ianlancetaylor ianlancetaylor modified the milestones: Go1.6, Unplanned Jul 15, 2015
@ianlancetaylor
Copy link
Contributor

For now this is going to be the province of external vendoring tools. Perhaps in the future it will become part of go get.

@bcmills
Copy link
Contributor

bcmills commented Jan 23, 2019

go mod vendor downloads the dependencies of the main module into its vendor directory.

That's probably as close as we're going to get, although we may add an optional argument to vendor in a specific module as part of the resolution to #27227.

@bcmills bcmills closed this as completed Jan 23, 2019
@golang golang locked and limited conversation to collaborators Jan 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants