Filters applied to arg
or using arg
in tests fail to resolve correctly
#3780
Unanswered
bartsmykla
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
outputBeta Was this translation helpful? Give feedback.
All reactions