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
Add support for http proxy_friendly_github_urls #215
Conversation
Provide proxy_friendly_github_urls=true on the command line to get all dependency git://github.com urls transformed into https://github.com so that they work behind a restrictive corporate firewall
Thanks, but we already have support for this: |
That's not quite the same - when I pull a module that has dependencies |
I see, that wasn't clear from the description. A list of patterns to match and replace in replacement_urls() ->
[{git, "git://github.com", "https://github.com"}, ...].
-type replacement() :: {vcs(), native_url(), proxy_friendly_url()}
-type vcs() :: 'git' | 'hg' | 'bzr' | 'svn'.
-type native_url() :: string().
-type proxy_friendly_url() :: string(). |
You actually doesn't need anything for this except a recent version of git and these bits of config:
The See |
It may not be obvious from my previous comment but this With this, Rebar does not need anything to rewrite repos' URLs, at least with Git. |
@aschepis maybe we should do that. We can also rely on file:script support like yaws does to |
@nox wow that's brilliant; had no idea there was already support for that in git. My 2 cents then - close this pull request as what I'd written (and extensions I was considering writing) are (in my mind) no longer necessary. edit: Looking at it some more, with file:script everything that alt_url was for should be possible without needing alt_url, so I think that can be removed too. |
If you never want to use anything other than HTTPS on GitHub again, you need two config sections:
|
Git's Anyway, I'd like to see transparent support for mirrors if possible, hopefully in a way that isn't hard-coded to GitHub. I noticed this used to sorta be supported with the |
Provide proxy_friendly_github_urls=true on the command line to get all
dependency git://github.com urls transformed into https://github.com
so that they work behind a restrictive corporate firewall