JuliaWeb / LibCURL.jl

Julia wrapper for libcurl
Other
33 stars 29 forks source link

cacert is not relocatable #96

Closed Roger-luo closed 3 years ago

Roger-luo commented 3 years ago

https://github.com/JuliaWeb/LibCURL.jl/blob/8310487053915d5c995513f569ad85ba65c3544f/src/LibCURL.jl#L21

this is causing the stdlib Downloader to fail when built into a standalone application, since there is no cert.pem shipped with the application, and even it is shipped with the application this path is already fixed during the compilation.

Error Message

ERROR: Error reading ca cert file /Users/runner/hostedtoolcache/julia/1.5.3/x64/share/julia/cert.pem - mbedTLS: (-0x3E00) PK - Read/write of file failed while requesting https://julialangnightlies-s3.julialang.org/bin/mac/x64/julia-latest-mac64.dmg
Stacktrace:
 [1] (::Downloads.var"#9#17"{IOStream,Base.DevNull,Nothing,Array{Pair{String,String},1},Float64,Bool,Bool,String,Bool,Bool,Int64})(::Downloads.Curl.Easy) at /Users/roger/.ion/applications/ion/bin/ion.dylib:?
 [2] with_handle(::Downloads.var"#9#17"{IOStream,Base.DevNull,Nothing,Array{Pair{String,String},1},Float64,Bool,Bool,String,Bool,Bool,Int64}, ::Downloads.Curl.Easy) at /Users/roger/.ion/applications/ion/bin/ion.dylib:?
 [3] arg_write(::Downloads.var"#8#16"{Base.DevNull,Nothing,Array{Pair{String,String},1},Float64,Bool,Bool,String,Bool,Bool,Int64}, ::IOStream) at /Users/roger/.ion/applications/ion/bin/ion.dylib:?
Roger-luo commented 3 years ago

ah I just realize there is an option to set ca root from Downloads. I'll close this first.