Skip to content

proposal: 'go get’ tool support http or ftp directly download source file. #11876

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

Closed
tomheng opened this issue Jul 27, 2015 · 1 comment
Closed

Comments

@tomheng
Copy link
Contributor

tomheng commented Jul 27, 2015

indeed, we only need a snapshot of source code, not all commit history of the code.

now ‘go get’ just support vcs(e.g. git), all them will pull a complete repo to local disk and then checkout a new

work copy of repo.

something i considered:

  • burden of network downloading
  • latest checkout work copy maybe not working(a expertise commit)

we can make ‘go get’ support directly download the source file(http or ftp) through go-import meta tag.

<meta name="go-import" content="github.com/golang/go file https://github.com/golang/go/releases/tag/go1.5beta2
">
@ianlancetaylor ianlancetaylor added this to the Unplanned milestone Jul 27, 2015
@adg adg added Proposal and removed Proposal labels Sep 25, 2015
@adg
Copy link
Contributor

adg commented Sep 25, 2015

I don't see this proposal as compelling. There's no way to make the -u flag work as-is, and if we set about devising a means of making it work then we start to reinvent git. I'm going to close this as nobody else has shown interest since it was proposed.

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