1
0
mirror of https://github.com/go-task/task.git synced 2025-06-23 00:38:19 +02:00

fix: forward env to RunCommand when evaluating sh vars (#1869)

* forward env to RunCommand when evaluating sh vars. fixes #1742

* feat: added tests

* fix: test

---------

Co-authored-by: Pete Davison <pd93.uk@outlook.com>
This commit is contained in:
rohm1
2025-01-02 21:07:25 +01:00
committed by GitHub
parent fe9f489702
commit 24a830e384
5 changed files with 23 additions and 4 deletions

View File

@ -17,6 +17,7 @@ tasks:
- task: global
- task: not-overridden
- task: multiple_type
- task: dynamic
local:
vars:
@ -50,3 +51,11 @@ tasks:
overridden:
cmds:
- echo "QUX='$QUX'" > overridden.txt
dynamic:
silent: true
vars:
DYNAMIC_FOO:
sh: echo $FOO
cmds:
- echo "{{ .DYNAMIC_FOO }}" > dynamic.txt