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

Don't throw error when executing task that is available for multiple envs #748

Closed
pavelzw opened this issue Jan 31, 2024 · 2 comments · Fixed by #766
Closed

Don't throw error when executing task that is available for multiple envs #748

pavelzw opened this issue Jan 31, 2024 · 2 comments · Fixed by #766
Assignees
Labels
✨ enhancement Feature request
Milestone

Comments

@pavelzw
Copy link
Contributor

pavelzw commented Jan 31, 2024

Problem description

❯ pixi run test
  × the task 'test' is ambiguous
  help: These environments provide the task 'test': pl014, pl015, pl016, pl017, pl018, pl019, pl020, py39, py310, py311, py312
        
        Specify the '--environment' flag to run the task in a specific environment, e.g:.
        
                pixi run --environment pl014 test

How about something like this?

❯ pixi run test
Which environment should the task be run in?
1. pl014
2. pl015
[...]
11. py312
<user selects 2.>
✨ Pixi task (pl015): pytest
@pavelzw pavelzw added the ✨ enhancement Feature request label Jan 31, 2024
@baszalmstra
Copy link
Contributor

Jep I still have to implement that. Will take a look tomorrow!

@baszalmstra baszalmstra added this to the Multi-env milestone Jan 31, 2024
@pavelzw
Copy link
Contributor Author

pavelzw commented Jan 31, 2024

Ideally it would only fail (and not be deadlocked waiting for input) if your shell is non-interactive / you're in GH actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement Feature request
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants