Skip to content

Commit

Permalink
Avoid curl_easy_setopt error logs (#1641)
Browse files Browse the repository at this point in the history
Due to an issue between the curl and openssl libraries the `pixi run
build` tasks failed.
In JuliaLang/Downloads.jl#244 the cause of the
issue is gfound to be environment variables being set that conflict.
This commit adds an environment variable to the tasks failing, clearing
the SSL variables

---------

Co-authored-by: Martijn Visser <[email protected]>
  • Loading branch information
Manangka and visr authored Nov 26, 2024
1 parent f9bdc1c commit d65ad7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ install = { depends_on = [
"install-pre-commit",
] }
# Julia
update-registry-julia = "julia --eval='using Pkg; Registry.update()'"
update-manifest-julia = "julia --project --eval='using Pkg; Pkg.update()'"
instantiate-julia = { cmd = "julia --project --eval='using Pkg; Pkg.instantiate()'", env = { JULIA_SSL_CA_ROOTS_PATH = "" } }
# Clear SSL_CERT_DIR to avoid Julia warnings, see https://github.com/JuliaLang/Downloads.jl/issues/244
update-registry-julia = { cmd = "julia --eval='using Pkg; Registry.update()'", env = { SSL_CERT_DIR = "" } }
instantiate-julia = { cmd = "julia --project --eval='using Pkg; Pkg.instantiate()'", env = { SSL_CERT_DIR = "" } }
initialize-julia = { depends_on = [
"update-registry-julia",
"instantiate-julia",
Expand Down Expand Up @@ -70,7 +70,7 @@ lint = { depends_on = [
build = { "cmd" = "julia --project build.jl", cwd = "build", depends_on = [
"generate-testmodels",
"initialize-julia",
], env = { JULIA_SSL_CA_ROOTS_PATH = "" } }
], env = { SSL_CERT_DIR = "", JULIA_SSL_CA_ROOTS_PATH = "" } }
remove-artifacts = "julia --eval 'rm(joinpath(Base.DEPOT_PATH[1], \"artifacts\"), force=true, recursive=true)'"
# Tests
test-ribasim-cli = "pytest --numprocesses=4 --basetemp=build/tests/temp --junitxml=report.xml build/tests"
Expand Down

0 comments on commit d65ad7e

Please sign in to comment.