Skip to content

Commit 79d9598

Browse files
authored
stop using deprecated [project] in pixi.toml (#207)
use [workspace] instead, provided pixi is new enough Co-authored-by: Christopher Rowley <github.com/cjdoris>
1 parent be025c2 commit 79d9598

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## Unreleased
4+
* Stop using deprecated `[project]` in `pixi.toml`.
5+
36
## 0.2.34 (2026-02-16)
47
* If the `env` preference (or `JULIA_CONDAPKG_ENV`) can now be a relative path, which is
58
taken to be relative to the current Julia project.

src/resolve.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,13 +1047,10 @@ function resolve(;
10471047
end
10481048
# earlier versions of `pixi init` (pixi < v0.43.0) created
10491049
# [project] instead of [workspace]
1050-
pixiworkspace = if haskey(pixitoml, "project")
1051-
pixitoml["project"]
1052-
else
1053-
pixitoml["workspace"]
1054-
end
1050+
pixiworkspacekey = haskey(pixitoml, "project") ? "project" : "workspace"
1051+
pixiworkspace = pixitoml[pixiworkspacekey]
10551052
pixitoml = Dict{String,Any}(
1056-
"project" => Dict{String,Any}(
1053+
pixiworkspacekey => Dict{String,Any}(
10571054
"name" => ".CondaPkg",
10581055
"description" => "automatically generated by CondaPkg.jl",
10591056
"platforms" => pixiworkspace["platforms"],

0 commit comments

Comments
 (0)