-
Notifications
You must be signed in to change notification settings - Fork 29
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
LibCURL does not build behind a proxy #69
Comments
I did a quick check on how other using BinaryBuilder handle the dependency problem currently and after looking over JuliaPackaging/BinaryBuilder.jl#194 it appears that we should just include the dependency build scripts instead of downloading them. Doing so should resolve your proxy issue. |
Could you try to install ImageMagick.jl? I imagine it has the same issue |
Correct, ImageMagick got the same problem. |
It appears that the using BinaryProvider
url = "https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.4/build_Zlib.v1.2.11.jl"
Base.download(url, "a.jl")
BinaryProvider.download(url, "b.jl"; verbose=true) |
I am using a patched version of BinaryProvider which uses the proxy for Powershell-Downloads. (see JuliaPackaging/BinaryProvider.jl#168) That's the output for your code: julia> Base.download(url, "a.jl")
┌ Error: Download failed: curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
└ @ Base download.jl:43
ERROR: failed process: Process(`'C:\WINDOWS\System32\curl.exe' -s -S -g -L -f -o a.jl https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.4/build_Zlib.v1.2.11.jl`, ProcessExited(35)) [35]
Stacktrace:
[1] pipeline_error at .\process.jl:813 [inlined]
[2] download_curl(::String, ::String, ::String) at .\download.jl:44
[3] download(::String, ::String) at .\download.jl:52
[4] top-level scope at REPL[3]:1
julia> BinaryProvider.download(url, "b.jl"; verbose=true)
[ Info: Downloading https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.4/build_Zlib.v1.2.11.jl to b.jl... Interestingly, the BinaryProvider version works, but the Base.download version doesn't - so you were right about the shadowing. The certificate problem is due to the way our company inspect ssl encrypted connections and cannot be solved (short of using dangerous option If I make sure that powershell is used for the download, everything works: julia> Base.find_curl() = nothing
julia> Base.download(url, "a.jl")
"a.jl" |
Thanks for the output. I think I'll update my PR to use |
Now included in LibCURL v0.5.2 |
[b27032c2] ↑ LibCURL v0.5.1 ⇒ v0.5.2
Building LibCURL ────→ `~\.julia\packages\LibCURL\lWJxD\deps\build.log` Works! Thank you! |
For me still doesn't work
|
The
build.jl
script uses thedownload
function in line20
.I think the
Base.download
function is shadowed by a version fromBinaryProvider
, which does not use the proxy.The text was updated successfully, but these errors were encountered: