feat(tasks): support aliases in pixi.toml task definitions - #6605
Open
Aditya7880900936 wants to merge 3 commits into
Open
feat(tasks): support aliases in pixi.toml task definitions#6605Aditya7880900936 wants to merge 3 commits into
Aditya7880900936 wants to merge 3 commits into
Conversation
Contributor
|
Thank you for your contribution, but I think you are missing a few bits and pieces still:
You also seem to be missing error handling: What e.g. happens when you reuse a task name as another tasks alias? it would be wonderful if you could add tests that trigger the above error conditions and then proceed to fix the issues. That will also build up test coverage and help catch more errors. |
This comment was marked as low quality.
This comment was marked as low quality.
added 3 commits
July 17, 2026 02:39
Signed-off-by: Aditya7880900936 <adityasanskarsrivastav788@gmail.com>
Signed-off-by: Aditya7880900936 <adityasanskarsrivastav788@gmail.com>
Signed-off-by: Aditya7880900936 <adityasanskarsrivastav788@gmail.com>
Contributor
|
Sorry, I was on vacation… I'll take another look ASAP. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #6504
This PR adds support for defining task aliases directly in
pixi.toml.Instead of creating a separate alias task:
users can now write:
The alias can be used anywhere a task name is accepted:
while
pixi task listcontinues to display only the original task, avoiding additional alias entries.Implementation
aliasfield to executable task definitions.aliaskey.Validation
cargo checkcargo test -p pixi_manifestcargo test -p pixi_corepixi run dspixi task list