julia> Pkg.init()
INFO: Initializing package repository /homedir/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: GitError(Code:ERROR, Class:OS, Failed to connect to github.com: Operation timed out)
in macro expansion at ./libgit2/error.jl:98 [inlined]
in clone(::String, ::String, ::Base.LibGit2.CloneOptions) at ./libgit2/repository.jl:191
in #clone#105(::String,
::Bool, ::Ptr{Void}, ::Nullable{Base.LibGit2.AbstractPayload},
::Function, ::String, ::String) at ./libgit2/libgit2.jl:308
in (::Base.LibGit2.#kw##clone)(::Array{Any,1}, ::Base.LibGit2.#clone, ::String, ::String) at ./<missing>:0
in (::Base.Pkg.Dir.##4#6{String,String})() at ./pkg/dir.jl:49
in cd(::Base.Pkg.Dir.##4#6{String,String}, ::String) at ./file.jl:59
in init(::String, ::String) at ./pkg/dir.jl:47
in init() at ./pkg/pkg.jl:70
git clone https://github.com/JuliaLang/METADATA.jl
We were prioritizing getting ssh remotes to work again for the first rc. Do ssh remotes work over proxies by any chance? I don't currently have immediate access to an environment behind a proxy to test this, but we had looked into setting one up that we could revisit.
Pkg.init("ssh://g...@github.com:/JuliaLang/METADATA.jl.git")
That could be considered a bug, Pkg.init should probably respect the Pkg.setprotocol! setting, at least when using the DEFAULT_META value. You should also be able to do Pkg.init("ssh://git@github.com:/
I tried the Pkg.init("ssh://...") a couple different ways, but neither worked.
Pkg.init("ssh://git@github.com:/JuliaLang/METADATA.jl.git")
gave GitError(Code:EINVALIDSPEC, Class:Net, Malformed URL 'ssh://g...@github.com:/JuliaLang/METADATA.jl.git').
asked me about my ssh keys then resulted in an authentication failure. If I were to get Pkg.init() working in this way, Pkg.add and other Pkg functions would still have problems though, right?
OK, I tried again with the latest nightlies. Now Pkg.init("ssh://git@github.com/JuliaLang/METADATA.jl.git") succeeds. However, I'm still not able to add packages. Pkg.setprotocol!("ssh") does seem to work with Pkg.add though: