Skip to content

0.45.0 - 2025-04-07

Choose a tag to compare

@github-actions github-actions released this 09 Apr 09:46
130c713

Release Notes

✨ Highlights

This release brings in numerous improvements and bug fixes and one big feature: argument variables tasks!
If you do add args, you will have more convenient way of specifying arguments, which works with pipes and even allows you to set defaults.

Let's say you define this manifest:

[tasks.install]
cmd = "cargo install {{ type }} --path {{ path }}"
args = ["path", { arg = "type", default = "--release" }] # `path` is mandatory, `type` is optional with a default

Both of the invocations now work, since type is optional:

pixi run install /path/to/manifest
pixi run install /path/to/manifest --debug

If you don't specify args for your tasks everything which you append to the CLI will also be appended to the task.

[tasks.install]
cmd = "cargo install"

Therefore, running pixi run install --debug --path /path/to/manifest will lead to cargo install --debug --path /path/to/manifest being run inside the environment.
This was already the behavior before this release, so existing tasks should continue to work.

Learn more in our documentation: https://pixi.sh/v0.45.0/workspace/advanced_tasks/#using-task-arguments

Changed

Documentation

Fixed

Performance

Refactor

  • Change section header from [project] to [workspace] in the docs source files by @prsabahrami in #3494

New Contributors

Download pixi 0.45.0

File Platform Checksum
pixi-aarch64-unknown-linux-musl.tar.gz ARM64 MUSL Linux checksum
pixi-x86_64-unknown-linux-musl.tar.gz x64 MUSL Linux checksum