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
mise ERROR failed to parse template: '{{ env.B }}'
mise ERROR Failed to render '__tera_one_off'
mise ERROR Variable `env.B` not found in context while rendering '__tera_one_off'
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
This prevents me from using a variable from a script in a PATH definition. For example:
@jdx You’re right - I made a mistake. The A and B examples were oversimplified and by my mistake actually were incorrect. My actual problem happens with the following setup:
[debug:env] ERROR task failed
mise ERROR failed to parse template: '{{ env.__GENERATE_TOOLS_DIR }}'
mise ERROR Failed to render '__tera_one_off'
mise ERROR Variable `env.__GENERATE_TOOLS_DIR` not found in context while rendering '__tera_one_off'
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
It seems like the variable __GENERATE_TOOLS_DIR is not being passed into the template context.
jdx
linked a pull request
Dec 21, 2024
that will
close
this issue
Describe the bug
According to the documentation (https://mise.jdx.dev/environments/#using-env-vars-in-other-env-vars), it should be possible to use env vars defined earlier in subsequent env vars. However, when I attempt the following:
I receive the following error:
This prevents me from using a variable from a script in a
PATH
definition. For example:To Reproduce
mise
and observe the error output.Expected behavior
I expected the environment variables defined earlier to be usable in subsequent env vars without causing errors.
mise doctor
outputThe text was updated successfully, but these errors were encountered: