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

task belonging to a single feature is currently ignored #733

Closed
2 tasks done
pavelzw opened this issue Jan 30, 2024 · 3 comments · Fixed by #731
Closed
2 tasks done

task belonging to a single feature is currently ignored #733

pavelzw opened this issue Jan 30, 2024 · 3 comments · Fixed by #731
Labels
🐞 bug Something isn't working

Comments

@pavelzw
Copy link
Contributor

pavelzw commented Jan 30, 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 = "my-project"
channels = ["conda-forge"]
platforms = ["linux-64", "osx-arm64", "osx-64", "win-64"]

[tasks]
# postinstall = "pip install --no-build-isolation --no-deps --disable-pip-version-check -e ."

[dependencies]
python = ">=3.11"
pip = "*"
polars = ">=0.14.24,<0.21"

[feature.py311.dependencies]
python = "3.11.*"
[feature.py312.dependencies]
python = "3.12.*"

[feature.test.dependencies]
hatchling = "*"
[feature.test.tasks]
postinstall = "pip install --no-build-isolation --no-deps --disable-pip-version-check -e ."

[environments]
py311 = ["py311", "test"]
py312 = ["py312", "test"]

Issue description

❯ pixi run -e py311 postinstall
postinstall: command not found

Expected behavior

 ❯ pixi run -e py311 postinstall
✨ Pixi task: pip install --no-build-isolation --no-deps --disable-pip-version-check -e .

# and

 ❯ pixi run postinstall
In which environment do you want to run the task postinstall?
1. py311
2. py312
1.
✨ Pixi task: pip install --no-build-isolation --no-deps --disable-pip-version-check -e .
@pavelzw pavelzw added the 🐞 bug Something isn't working label Jan 30, 2024
@wolfv
Copy link
Member

wolfv commented Jan 30, 2024

I wonder if this fixes your problem? #731

@pavelzw
Copy link
Contributor Author

pavelzw commented Jan 30, 2024

maybe i was too quick with testing 😅 i used 41029cd

@pavelzw
Copy link
Contributor Author

pavelzw commented Jan 30, 2024

Yes, this seems to fix it 🚀

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.

2 participants