You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The task runner is written in Rust and published on crates.io: https://github.com/jinjor/deno-task-runner
pixi could therefore directly depend on it.
It's also only about 6000 lines of code. If you don't like their direction, you could probably fork it and maintain it within this org.
To be extra sure, you could also ask Deno developers if they feel that the deno task runner is a good crate for other projects to depend on.
Alternatives:
use nushell, you will probably want to wait until 1.0 and even then it will not be a lightweight dependency
stick with the status quo, after all it seems to work okayish for npm and just too
The text was updated successfully, but these errors were encountered:
The current implementation is also cross-platform but it is very limited. We don't allow shell commands to be run. The first argument has to be an existing executable file and all other arguments are quoted. This is very limited in what it can do and we were already planning on enabling some form or running shell commands so your idea sounds great!
We still need the platform-specific shell though because we need to run conda activation scripts which are platform specific. However, we are already working on caching the result of the activation scripts so we can run that independently of the running commands with pixi.
It would also be very interesting to use something like this in the conda ecosystem in general though. It's a real pain in the ass to write different build scripts for windows and UNIX.
The current implementation is also cross-platform but it is very limited. We don't allow shell commands to be run. The first argument has to be an existing executable file and all other arguments are quoted. This is very limited in what it can do and we were already planning on enabling some form or running shell commands so your idea sounds great!
Thanks for the clarification @baszalmstra! Seems like I should have looked more closely at the code :)
I am also happy to hear that you are open to the idea, very excited about a future where pixi manages my projects!
At the moment, executing
pixi run
means that your system shell executes the specified command:pixi/src/cli/run.rs
Line 63 in 010bd06
That is similar to how
npm
orjust
works, and it suffers from the same problems.Users have to either:
cmd
andbash
, orI suggest getting inspired by Deno instead. Deno uses its own cross-platform shell, which is a subset of sh/bash: https://deno.land/[email protected]/tools/task_runner
The task runner is written in Rust and published on crates.io: https://github.com/jinjor/deno-task-runner
pixi could therefore directly depend on it.
It's also only about 6000 lines of code. If you don't like their direction, you could probably fork it and maintain it within this org.
To be extra sure, you could also ask Deno developers if they feel that the deno task runner is a good crate for other projects to depend on.
Alternatives:
npm
andjust
tooThe text was updated successfully, but these errors were encountered: