Skip to content

Commit 2b2b3e5

Browse files
evetionvisr
andauthored
Use pixi to fix julia package permissions on Windows (#1710)
Fixes #1603 Given the recent changes in Teamcity, the original project is lost-ish https://dpcbuild.deltares.nl/buildConfiguration/Ribasim_Ribasim_Windows_FixJuliaArtifactPermissions?branch=continuous_control&buildTypeTab=overview&mode=builds? As in automatic (?), greyed-out, no build steps or builds visible. Furthermore, the new Template(s) used is/are platform-agnostic, so harder to integrate a Windows specific fix. So the easier way is just to integrate it into pixi, and always running it at CI time, also useful when it irrevocably happens on Windows laptops. However, there seems to be no way to have platform specific tasks (@Hofer-Julian is that correct and maybe worth an issue? I know you proposed the deno shell 😉), so I now just append an `exit`, ignoring any exit code of the previous command. --------- Co-authored-by: Martijn Visser <[email protected]>
1 parent 7022e81 commit 2b2b3e5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pixi.toml

+9-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,15 @@ test-ribasim-api = "pytest --basetemp=python/ribasim_api/tests/temp --junitxml=r
2121
[feature.dev.tasks]
2222
# Installation
2323
install-julia = "juliaup add 1.10.4 && juliaup override unset && juliaup override set 1.10.4"
24+
# Workaround rare issue, only on Windows, hence uses exit 0 to ignore errors
25+
# Upstream issue: https://github.com/JuliaLang/julia/issues/52272
26+
reset-artifact-permissions = "icacls $homedrive/$homepath/.julia/artifacts /q /c /t /reset;exit 0"
2427
install-pre-commit = "pre-commit install"
25-
install-ci = { depends_on = ["install-julia", "update-registry-julia"] }
28+
install-ci = { depends_on = [
29+
"reset-artifact-permissions",
30+
"install-julia",
31+
"update-registry-julia",
32+
] }
2633
install = { depends_on = [
2734
"install-ci",
2835
"install-qgis-plugins",
@@ -77,7 +84,7 @@ lint = { depends_on = [
7784
build = { "cmd" = "julia --project build.jl", cwd = "build", depends_on = [
7885
"generate-testmodels",
7986
"initialize-julia",
80-
], env = {JULIA_SSL_CA_ROOTS_PATH = ""} }
87+
], env = { JULIA_SSL_CA_ROOTS_PATH = "" } }
8188
remove-artifacts = "julia --eval 'rm(joinpath(Base.DEPOT_PATH[1], \"artifacts\"), force=true, recursive=true)'"
8289
# Tests
8390
test-ribasim-cli = "pytest --numprocesses=4 --basetemp=build/tests/temp --junitxml=report.xml build/tests"

0 commit comments

Comments
 (0)