Open apple-phi opened 1 month ago
We indeed don't parse the task itself as a pixi run command. This is where the depends-on comes in.
There is a feature request for arguments: #957
But the idea of simply allowing to run a task from a task is a good idea!
But the idea of simply allowing to run a task from a task is a good idea!
Any chance you could give some pointers on where in the codebase to look please so that I or someone else interested can figure out an implementation and make a PR?
Checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
Issue description
It appears that pixi tasks can't run other pixi tasks outside of
depends-on
(e.g. to run them with arguments), which I didn't notice in the documentation. Also, the error message is misleading, since it clearly lists the desired subtaskpdfcpu
in the available tasks after saying it can't be found.So, either this is a bug in the error message, or this is an undocumented missing feature.
Expected behavior
Either pixi tasks should run other pixi tasks with supplied arguments, or the error message shouldn't state the contradiction that it can't find the task but lists it anyway.