1
0
mirror of https://github.com/go-task/task.git synced 2025-06-17 00:17:51 +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

@ -130,6 +130,7 @@ func TestEnv(t *testing.T) {
"global.txt": "FOO='foo' BAR='overridden' BAZ='baz'\n",
"multiple_type.txt": "FOO='1' BAR='true' BAZ='1.1'\n",
"not-overridden.txt": "QUX='from_os'\n",
"dynamic.txt": "foo\n",
},
}
tt.Run(t)