I have been successfully using Julia 0.4 from behind corporate proxy.
Just trying to upgrade to Julia 0.5 but Pkg() commands fail:
julia> Pkg.init()
INFO: Initializing package repository C:\Users\plowman\.julia\v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: GitError(Code:ERROR, Class:OS, Failed to set proxy: The parameter is incorrect.
)
in macro expansion at .\libgit2\error.jl:99 [inlined]
in clone(::String, ::String, ::Base.LibGit2.CloneOptions) at .\libgit2\repository.jl:191
in #clone#109(::String, ::Bool, ::Ptr{Void}, ::Nullable{Base.LibGit2.AbstractCredentials}, ::Function, ::String, ::String) at .\libgit2\libgit2.jl:327
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:48
in init(::String, ::String) at .\pkg\dir.jl:47
in init() at .\pkg\pkg.jl:70
I have searched for similar issues, but I am rather confused about what has changed.
It seems git is no longer used (and Windows Julia 0.5 download no longer contains Git sub-directory).
So I’m guessing the git config is not relevant here:
git config --global url."https://github.com/".insteadOf git://github.com/
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
I have tried Pkg.setprotocol!("https")
, but it doesn’t seem to work. (Also docs suggest https
is the default)
From this issue: https://groups.google.com/d/msg/julia-users/K-7wYCfaGc8/CeOCUiR_AQAJ :
So do i understand correctly that the current win64 build doesn't include git/ssh via proxy? Or is just the setting in (where?) missing? Is there a counterpart to the https-insteadof-git setting available?
I know it's not helpful, but i get (behind a company http/https proxy) the same error with Pkg.init() (which is in comparision to other RC0 issues a showstopper).
Has anyone else experienced same?
Any suggestions?