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

pixi task list panics if any feature has non-compatible platforms #1547

Closed
2 tasks done
hoxbro opened this issue Jun 28, 2024 · 0 comments · Fixed by #1550
Closed
2 tasks done

pixi task list panics if any feature has non-compatible platforms #1547

hoxbro opened this issue Jun 28, 2024 · 0 comments · Fixed by #1550
Labels
🐞 bug Something isn't working

Comments

@hoxbro
Copy link
Contributor

hoxbro commented Jun 28, 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

pixi task list
pixi task list -e test-unit
[project]
name = "test"
channels = ["conda-forge"]
platforms = ["linux-64", "osx-arm64", "osx-64", "win-64"]

[tasks]
install = 'python -m pip install --no-deps --disable-pip-version-check -e .'

[environments]
test-gpu = ["test-gpu"]
test-unit = ["test-unit"]

[feature.test-unit.tasks]
test-unit = "echo test-unit"

[feature.test-gpu]
# platforms = ["linux-64"]   # Works if on Linux
platforms = ["win-64"]   # Fails if on Linux

[feature.test-gpu.tasks]
test-gpu = "echo test-gpu"

Issue description

pixi task list fails if any feature has non-compatible platforms. Currently, it panics:

image

Expected behavior

Either hide non-compatible platforms task or show them with a message they are not available on the users platform

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

Successfully merging a pull request may close this issue.

1 participant