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: make git repo special-casing more generic #11458
Comments
Would this address enterprise GitHub installations? On 29 June 2015 at 13:54, Josh Bleecher Snyder notifications@github.com
|
It would address every GitHub Enterprise installation I've encountered, because basically everyone puts theirs at github.mycompany.com. |
Sounds good to me. Having trouble seeing a downside. On 29 June 2015 at 14:05, Josh Bleecher Snyder notifications@github.com
|
@josharian #10797 issue is different though it might be hard to understand from the ticket itself. Currently (with Go 1.4) Git repos from git.apache.org are correctly cloned using Go 1.5 treats https://go-review.googlesource.com/#/c/10092/ fixes this problem. |
This doesn't work. In addition to knowing to use git, you also have to know For other git servers it's far from clear that the rule would always be the first It's of course already possible to put a .git into the import path to specify the |
I propose that in addition to the list of well-known domains,
go get
use the following heuristic to identify cases in whichgit
is the right vcs: Split the domain into components. If any component is exactly "git" or "github", assume it is a git repo. This would cover git.apache.org (#10797) as well as most GitHub Enterprise installations.10 of the 84 domains at found at godoc.org fit this pattern, so this provides pretty decent coverage.
Thoughts?
/cc @adg @bradfitz
The text was updated successfully, but these errors were encountered: