This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Filters applied to arg
or using arg
in tests fail to resolve correctly
#3778
Labels
Describe the bug
Applying filters to
arg
or using it in tests in TOML tasks fails to work as expected in some cases. Filters do not apply correctly, and arguments appear as placeholder strings (MISE_TASK_ARG
) instead of resolving to their values.To Reproduce
Example 1: Using
arg
in tasks with conditionalsRunning the task with
mise run generate:policy circuit-breaker
results in the following error:Example 2: Applying filters to
arg
Running the task with
mise run generate:policy circuit-breaker
results in thepolicy_name
variable being incorrectly evaluated asMISE_TASK_ARG:POLICY-NAME:MISE_TASK_ARG
, causing paths to be constructed incorrectly:Expected behavior
arg
function should resolve to the actual argument passed to the task (e.g.,circuit-breaker
).upper
should apply correctly to the resolved argument value.mise doctor
outputThe text was updated successfully, but these errors were encountered: