Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using platform remove clears all platforms #1920

Open
2 tasks done
Ahajha opened this issue Aug 27, 2024 · 1 comment
Open
2 tasks done

Using platform remove clears all platforms #1920

Ahajha opened this issue Aug 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Ahajha
Copy link

Ahajha commented Aug 27, 2024

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

[project]
name = "bug"
channels = ["conda-forge"]
platforms = ["linux-64", "linux-aarch64", "osx-arm64"]

[dependencies]
python = ">=3.9,<3.13"
pixi project platform remove linux-aarch64

Issue description

The above removes all platforms instead of just the one specified.

Expected behavior

I would expect the above example to only remove linux-aarch64, however it instead removes all platforms. (This isn't specific to linux-aarch64, it does it with any of the platforms).

Additionally, I would expect target.<platform>.<section> sections to be removed, otherwise as-is the project file is broken. This can be repro'd with the following:

[project]
name = "bug"
channels = ["conda-forge"]
platforms = []

[target.linux-64.dependencies]
python = ">=3.9,<3.13"

[target.linux-aarch64.dependencies]
python = ">=3.9,<3.13"

[target.osx-arm64.dependencies]
python = ">=3.9,<3.13"
@Ahajha Ahajha added the bug Something isn't working label Aug 27, 2024
@tdejager
Copy link
Contributor

tdejager commented Sep 5, 2024

Smells and looks like a bug, thank you we should look into this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants