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

fix: include with dynamic vars (#2092)

This commit is contained in:
Valentin Maerten
2025-02-26 17:49:05 +01:00
committed by GitHub
parent a266fba93e
commit c23c46e326
4 changed files with 25 additions and 1 deletions

View File

@ -2477,6 +2477,19 @@ VAR_2 is included-default-var2
assert.Equal(t, strings.TrimSpace(buff.String()), expectedOutputOrder)
}
func TestIncludeWithVarsInInclude(t *testing.T) {
t.Parallel()
const dir = "testdata/include_with_vars_inside_include"
var buff bytes.Buffer
e := task.Executor{
Dir: dir,
Stdout: &buff,
Stderr: &buff,
}
require.NoError(t, e.Setup())
}
func TestIncludedVarsMultiLevel(t *testing.T) {
t.Parallel()