Repository navigation
feat: support packing named platforms from v7 lockfiles - #346
Merged
Pavel Zwerschke (pavelzw) merged 4 commits intoAug 31, 2026
Merged
Conversation
Bump rattler_lock to 0.32.1 (lockfile format v7) and allow --platform to
be either a conda subdir or the name of a platform defined in the
lockfile, e.g. `pixi-pack --platform jetson` for
platforms = [{ name = "jetson", platform = "linux-aarch64", cuda = "13" }].
A subdir is still accepted as long as it maps to exactly one named
platform; ambiguous subdirs error with the candidate names. The pack
metadata always records the resolved conda subdir.
Co-Authored-By: Claude Fable 5 <[email protected]>
Review cleanup: the CLI no longer resolves the platform itself (pack owns the metadata platform now), it only asks the lockfile when it has to pick between environment.ps1 and environment.sh. Dedup the environment lookup and drop a needless metadata clone. Co-Authored-By: Claude Fable 5 <[email protected]>
Ruben Arts (ruben-arts)
requested review from
Daniel Elsner (delsner) and
Pavel Zwerschke (pavelzw)
as code owners
August 28, 2026 12:12
Pavel Zwerschke (pavelzw)
approved these changes
Aug 31, 2026
| // Always record the real conda subdir here, a platform name like `jetson` | ||
| // means nothing on the machine that unpacks this. | ||
| let metadata = PixiPackMetadata { | ||
| platform: subdir, |
There was a problem hiding this comment.
i'm wondering whether we should call this subdir instead now that platform has two meanings... but i guess it's fine like this, otherwise the files are not readable by old pixi-pack versions
8 tasks
Pavel Zwerschke (pavelzw)
merged commit Aug 31, 2026
8ed402a
into
Quantco:main
18 of 22 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow
--platformto be either a conda subdir or the name of a platform defined in the lockfile, e.g.pixi-pack --platform jetsonforChanges
This updates the rattler dependencies for the new version of rattler-lock.
If updating documentation: