diff --git a/pixi.toml b/pixi.toml index f3cea5339..c042758da 100644 --- a/pixi.toml +++ b/pixi.toml @@ -21,16 +21,22 @@ install-ribasim-testmodels = "pip install --no-deps --editable python/ribasim_te install-pre-commit = "pre-commit install" install-without-pre-commit = { depends_on = [ "install-julia", + "update-registry-julia", "install-ribasim-python", "install-ribasim-api", "install-ribasim-testmodels", ] } install = { depends_on = ["install-without-pre-commit", "install-pre-commit"] } # Instantiate +update-registry-julia = "julia --eval='using Pkg; Registry.update()'" instantiate-julia = "julia --project --eval='using Pkg; Pkg.instantiate()'" +initialize-julia = { depends_on = [ + "update-registry-julia", + "instantiate-julia", +] } # Docs build-julia-docs = { cmd = "julia --project=docs docs/make.jl", depends_on = [ - "instantiate-julia", + "initialize-julia", ] } quartodoc-build = { cmd = "quartodoc build && rm objects.json", cwd = "docs" } quarto-preview = { cmd = "quarto preview docs", depends_on = [ @@ -56,15 +62,15 @@ lint = { depends_on = [ # Build build-ribasim-cli = { cmd = "julia --project build.jl --app", cwd = "build/create_binaries", depends_on = [ "generate-testmodels", - "instantiate-julia", + "initialize-julia", ] } build-libribasim = { cmd = "julia --project build.jl --lib", cwd = "build/create_binaries", depends_on = [ "generate-testmodels", - "instantiate-julia", + "initialize-julia", ] } build = { "cmd" = "julia --project build.jl --app --lib", cwd = "build/create_binaries", depends_on = [ "generate-testmodels", - "instantiate-julia", + "initialize-julia", ] } remove-artifacts = "julia --eval 'rm(joinpath(Base.DEPOT_PATH[1], \"artifacts\"), force=true, recursive=true)'"