Update problems behind a corporate proxy with user and pass

Hello,

I know this question was asked a hundred times in the web, but I did’nt find any solution. So I ask again for my special situation:

I istalled a fresh Julia 0.5.1 64-bit on my windows 7 computer. There is no program “git” or “git.exe” on the computer (which is part of several soutions) and it did not come with Julia.

If I call e.g. Pkg.status() (or any other Pkg related command) then I get:


INFO: Initializing package repository C:\Users\di29394\.julia\v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: GitError(Code:ERROR, Class:OS, Failed to set proxy: Falscher Parameter.
)
 in macro expansion at .\libgit2\error.jl:99 [inlined]
 in clone(::String, ::String, ::Base.LibGit2.CloneOptions) at .\libgit2\repository.jl
:191
 in #clone#112(::String, ::Bool, ::Ptr{Void}, ::Nullable{Base.LibGit2.AbstractCredent
ials}, ::Function, ::String, ::String) at .\libgit2\libgit2.jl:327
 in (::Base.LibGit2.#kw##clone)(::Array{Any,1}, ::Base.LibGit2.#clone, ::String, ::St
ring) 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 #cd#1(::Array{Any,1}, ::Function, ::Function, ::Base.TTY, ::Vararg{Base.TTY,N}) a
t .\pkg\dir.jl:28
 in status(::Base.TTY) at .\pkg\pkg.jl:136 (repeats 2 times)

The environment variables HTTP_PROXY, HTTPS_PROXY, FTP_PROXY,http_proxy,https_proxy and ftp_proxy are set in a proper way, i.e. http://user:pass@proxy:port and work well e.g. for all of my Python installations.
I also set C:/users/user/.gitconfig to:

[http]
    	proxy = proxy:port
[https]
    	proxy = proxy:port
[url "https://"]
    	insteadof = git://

and also tried to set

[http]
    	proxy = user:pass@proxy:port
[https]
    	proxy = user:pass@proxy:port
[url "https://"]
    	insteadof = git://

The error is always almost the same.

What to do now?

P.S.: user, pass, proxy and port were set to the actual values :slight_smile:

Maybe this is relevant:

Should now work in 0.6 with .gitconfig or environment variables.

https://github.com/JuliaLang/julia/issues/20948#issuecomment-287306113