prefix-dev / pixi

Package management made easy
https://pixi.sh
BSD 3-Clause "New" or "Revised" License
2.88k stars 156 forks source link

Allow selection of platform when doing `pixi install` and/or `pixi shell` #1559

Open corneliusroemer opened 2 months ago

corneliusroemer commented 2 months ago

Problem description

I'm trying out cross-platform support.

I've got two architectures in my pixi.toml and pixi.lock: osx-arm64 and osx-64.

As soon as osx-arm64 is present, it seems that I cannot install/activate the osx-64 environment anymore. Is that correct?

I was looking for a --platform argument for pixi install but couldn't find one.

ruben-arts commented 1 month ago

That is indeed how it is designed. Why would you want to run the osx-64 on osx-arm64 while the osx-arm is available?