Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: include full env in toolset tera_ctx #3751

Merged
merged 2 commits into from
Dec 21, 2024
Merged

Conversation

risu729
Copy link
Contributor

@risu729 risu729 commented Dec 21, 2024

This fixes a bug that we cannot use the pristine env in tasks.*.run templates. The bug is caused by #3708, which started using toolset's tera_ctx instead of that of task itself.

I added config to the args of full_env. If it's better to make it Option<&Config>, I will refactor it.

https://github.com/risu729/mise/blob/130b3e1cf8a924ddf28ce94d7cb01e52a00ea09e/src/toolset/mod.rs#L466

@jdx jdx merged commit 69a3fd6 into jdx:main Dec 21, 2024
18 checks passed
@risu729 risu729 deleted the fix/toolset-full-env branch December 21, 2024 10:57
miguelmig pushed a commit to miguelmig/mise that referenced this pull request Dec 21, 2024
* fix: include full env in toolset tera_ctx

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
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.

2 participants