Skip to content

feat: support packing named platforms from v7 lockfiles - #346

Merged
Pavel Zwerschke (pavelzw) merged 4 commits into
Quantco:mainfrom
ruben-arts:named-platforms
Aug 31, 2026
Merged

Pavel Zwerschke (pavelzw) merged 4 commits into
Quantco:mainfrom
ruben-arts:named-platforms

Conversation

@ruben-arts

@ruben-arts Ruben Arts (ruben-arts) commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

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" }].

Changes

This updates the rattler dependencies for the new version of rattler-lock.


If updating documentation:

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]>
Comment thread src/pack.rs
// 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,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@pavelzw
Pavel Zwerschke (pavelzw) merged commit 8ed402a into Quantco:main Aug 31, 2026
18 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants