Skip to content

Support workplace platforms = ["noarch"] #5111

@mroeschke

Description

@mroeschke

Problem description

I am trying to create a platform agnostic workflow. Per following the "The available platforms are listed here:" link in https://pixi.sh/dev/reference/pixi_manifest/#platforms, I see NoArch as a valid enum value in the Rattler docs, so In my pixi.toml I'm trying to specify

[workspace]
...
platforms = ["noarch"]

[tasks]

[dependencies]
python = "3.13.*"
anaconda-client = "==1.13.0"

But trying to pixi lock I get

$ pixi lock
Error:   × Expected one of 'linux-32', 'linux-64', 'linux-aarch64', 'linux-armv6l', 'linux-armv7l', 'linux-ppc64le', 'linux-ppc64', 'linux-s390x', 'linux-riscv32', 'linux-riscv64', 'osx-64', 'osx-
  │ arm64', 'win-32', 'win-64', 'win-arm64', 'emscripten-wasm32', 'wasi-wasm32', 'zos-z'
   ╭─[/pixi.toml:6:15]
 5 │ name = "upload-nightly-action"
 6 │ platforms = ["noarch"]
   ·               ───────
 7 │ version = "0.6.2"
   ╰────
  help: Did you mean 'linux-aarch64'?

Would it be possible to support a value like platform = ["noarch"] so all the values in the error message don't need to be specified?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions