Skip to content

Fail when pixi run or pixi install is executed on unsupported platform #5071

@Hofer-Julian

Description

@Hofer-Julian

With a pixi.toml like this,

[workspace]
authors = ["Julian Hofer <julianhofer@gnome.org>"]
channels = ["https://prefix.dev/conda-forge"]
name = "python"
platforms = ["osx-arm64"]
version = "0.1.0"

[tasks]
python = "python"

[dependencies]
python = ">=3.14.1,<3.15"

I get the following results if I run it on my linux-64 machine:

Projekte/testing_ground/python via 🧚 v0.60.0 took 11s
nu ❯ pixi run python
Python 3.14.0 (main, Oct 17 2025, 00:00:00) [GCC 15.2.1 20251022 (Red Hat 15.2.1-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

Projekte/testing_ground/python via 🧚 v0.60.0
nu ❯ pixi install
 WARN Not installing dependency for (default) on current platform: (linux-64) as it is not part of this project's supported platforms.
✔ The default environment has been installed.

You can see that it let's me proceed in both cases, in the first case simply using my global Python without any warning.

I would expect that it fails in both cases, since my platform is not part of the supported platforms of the default environment

@wolfv

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions