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
Describe the bug
tera templates in depends, depends_post, or wait_for are split by whitespace before rendering.
To Reproduce mise.toml
[tasks.test]
depends = ["{% if env.CI is defined %}check{% else %}lint{% endif %}"]
run = "echo hello"
mise test
$ mise test
mise WARN rendering task:
0: Failed to parse '__tera_one_off'
1: --> 1:1
|
1 | {%
| ^---
|
= expected a template
Location:
src/task/mod.rs:426
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
mise ERROR error parsing glob '{%': unclosed alternate group; missing '}' (maybe escape '{' with '[{]'?)
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
Expected behavior lint is executed.
Additional context from_str splits depends before rendering. It should be split after rendering but requires code structure changes.
Describe the bug
tera templates in
depends
,depends_post
, orwait_for
are split by whitespace before rendering.To Reproduce
mise.toml
mise test
Expected behavior
lint
is executed.Additional context
from_str
splitsdepends
before rendering. It should be split after rendering but requires code structure changes.mise/src/task/task_dep.rs
Lines 34 to 43 in a4ab84f
mise doctor
outputThe text was updated successfully, but these errors were encountered: