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: allow a module to be downloaded by go get without its dependencies #26683

Closed
marwan-at-work opened this issue Jul 30, 2018 · 3 comments
Closed
Labels
FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@marwan-at-work
Copy link
Contributor

When go asks the GORPOXY for a zip file, it only wants that zip file and not its dependencies.

go get, however, attempts to recursively download all dependencies.

Is there a reason not to have a flag that makes go get just download the code (.info, go.mod, and .zip) of a package and not its dependencies? I saw that -m does not allow download/install, but it does not create a .zip file inside the mod/cache/download directory.

What version of Go are you using (go version)?

Tip

Does this issue reproduce with the latest release?

No

What operating system and processor architecture are you using (go env)?

darwin

@marwan-at-work
Copy link
Contributor Author

Actually, though the two issues are unrelated, Russ's comments in #26600 (comment) potentially addresses my issue above.

@ianlancetaylor ianlancetaylor changed the title cmd/go/get: allow a module to be downloaded without its dependencies cmd/go: allow a module to be downloaded by go get without its dependencies Aug 3, 2018
@ianlancetaylor ianlancetaylor added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. modules labels Aug 3, 2018
@ianlancetaylor ianlancetaylor added this to the Go1.12 milestone Aug 3, 2018
@ianlancetaylor
Copy link
Contributor

If you feel that there is nothing else to do here, please close the issue. Thanks.

@marwan-at-work
Copy link
Contributor Author

I believe #26577 is the same as this one so I'll close for now and if they diverged I'll reopen. Thanks @ianlancetaylor !

@golang golang locked and limited conversation to collaborators Aug 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants