Skip to content

feat: Add --templated flag to pixi run#5489

Merged
ruben-arts merged 8 commits intoprefix-dev:mainfrom
pavelzw:templated-run
Feb 12, 2026
Merged

feat: Add --templated flag to pixi run#5489
ruben-arts merged 8 commits intoprefix-dev:mainfrom
pavelzw:templated-run

Conversation

@pavelzw
Copy link
Collaborator

@pavelzw pavelzw commented Feb 11, 2026

Description

closes #5478

Fixes #{issue}

How Has This Been Tested?

❯ ./target/debug/pixi run 'echo' '{{ pixi.version }}'
{{ pixi.version }}
❯ ./target/debug/pixi run --templated 'echo' '{{ pixi.version }}'
0.63.2
❯ ./target/debug/pixi run example
✨ Pixi task (example in default): echo osx-arm64
osx-arm64
❯ ./target/debug/pixi run --templated example
Error:   × --templated has no effect for manifest-defined task 'example' (tasks in the manifest are always templated)

AI Disclosure

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.

Tools: Claude Code

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added sufficient tests to cover my changes.
  • I have verified that changes that would impact the JSON schema have been made in schema/model.py.

@pavelzw pavelzw marked this pull request as ready for review February 11, 2026 15:40
@ruben-arts
Copy link
Contributor

Why would you error on using --templated when it doesn't do anything?

@pavelzw
Copy link
Collaborator Author

pavelzw commented Feb 11, 2026

it implies that without using --templated, it would actually not template things. but i also don't feel super strong about this, can also revert that part

@ruben-arts
Copy link
Contributor

it implies that without using --templated, it would actually not template things. but i also don't feel super strong about this, can also revert that part

I rather not error when it doesn't change the outcome, so please remove that.

Copy link
Contributor

@ruben-arts ruben-arts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Works for me

@ruben-arts ruben-arts merged commit 90705f3 into prefix-dev:main Feb 12, 2026
40 checks passed
@pavelzw pavelzw deleted the templated-run branch February 12, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(run): pixi run echo '{{ hello }}' fails

2 participants