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

Comments

Projects
None yet
2 participants
@marwan-at-work
Copy link
Contributor

commented Jul 30, 2018

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

This comment has been minimized.

Copy link
Contributor Author

commented Jul 31, 2018

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 this to the Go1.12 milestone Aug 3, 2018

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Aug 3, 2018

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

@marwan-at-work

This comment has been minimized.

Copy link
Contributor Author

commented Aug 3, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.