From d65ad7e4af452401fdbcefa11b3c24605847bdfa Mon Sep 17 00:00:00 2001 From: Sunny Titus <77051845+Manangka@users.noreply.github.com> Date: Tue, 26 Nov 2024 07:45:30 +0100 Subject: [PATCH] Avoid `curl_easy_setopt` error logs (#1641) Due to an issue between the curl and openssl libraries the `pixi run build` tasks failed. In https://github.com/JuliaLang/Downloads.jl/issues/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 --- pixi.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pixi.toml b/pixi.toml index 4e1aed0f8..80b6204d6 100644 --- a/pixi.toml +++ b/pixi.toml @@ -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", @@ -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"