CyberShadow / Digger

A tool to build D and bisect old D versions
Other
57 stars 9 forks source link

http proxy #8

Closed MaksimZh closed 9 years ago

MaksimZh commented 9 years ago

The submodules with URLs starting with "git://" can not be cloned behind http proxy.

Output of git clone --recursive https://github.com/CyberShadow/Digger:

Cloning into 'Digger'...
remote: Counting objects: 664, done.
remote: Total 664 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (664/664), 142.27 KiB | 118.00 KiB/s, done.
Resolving deltas: 100% (414/414), done.
Checking connectivity... done.
Submodule 'ae' (git://github.com/CyberShadow/ae.git) registered for path 'ae'
Submodule 'win32' (https://github.com/CS-svnmirror/dsource-bindings-win32) registered for path 'win32'
Cloning into 'ae'...
fatal: unable to connect to github.com:
github.com[0: 192.30.252.130]: errno=Connection timed out

Clone of 'git://github.com/CyberShadow/ae.git' into submodule path 'ae' failed

Output of digger build with pull request #7 :

digger: Building spec: master
digger: First run detected.
Please be patient, cloning everything might take a few minutes...

digger: Preparing prerequisites...
digger: Preparing repository...
digger: Cloning initial repository...
Cloning into 'repo'...
remote: Counting objects: 65081, done.
remote: Compressing objects: 100% (280/280), done.
remote: Total 65081 (delta 137), reused 0 (delta 0)
Receiving objects: 100% (65081/65081), 7.46 MiB | 135.00 KiB/s, done.
Resolving deltas: 100% (38734/38734), done.
Checking connectivity... done.
Submodule 'dlang.org' (git://github.com/D-Programming-Language/dlang.org) registered for path 'dlang.org'
Submodule 'dmd' (git://github.com/D-Programming-Language/dmd) registered for path 'dmd'
Submodule 'druntime' (git://github.com/D-Programming-Language/druntime) registered for path 'druntime'
Submodule 'installer' (git://github.com/D-Programming-Language/installer) registered for path 'installer'
Submodule 'phobos' (git://github.com/D-Programming-Language/phobos) registered for path 'phobos'
Submodule 'tools' (git://github.com/D-Programming-Language/tools) registered for path 'tools'
Cloning into 'dlang.org'...
fatal: unable to connect to github.com:
github.com[0: 192.30.252.130]: errno=Connection timed out

Clone of 'git://github.com/D-Programming-Language/dlang.org' into submodule path 'dlang.org' failed
digger: Check that you have git installed and accessible from PATH.
Fatal error: Command ["git", "clone", "--recursive", "https://bitbucket.org/cybershadow/d.git", "repo"] failed with status 1

More git:// paths are here: https://bitbucket.org/cybershadow/d/src/42423f0ae15f9d3e25acc496295ba3349311e40a/.gitmodules?at=master

CyberShadow commented 9 years ago

You can work around this by configuring git to use the https:// protocol instead of git://.

http://stackoverflow.com/a/11383587/21501

I'd rather not change the URLs that Digger uses because the git protocol is more efficient.

MaksimZh commented 9 years ago

That's AWESOME! Thank you!