fix: .USER_WORKING_DIR should contain the value of --dir if given (#2186)

Closes #2102
Closes #2103

Co-authored-by: jaynis <kranz.jannis@googlemail.com>
This commit is contained in:
Andrey Nering
2025-04-18 22:27:30 -03:00
committed by GitHub
parent e65159f613
commit 768dca053b
4 changed files with 10 additions and 2 deletions

View File

@@ -2148,7 +2148,7 @@ func TestUserWorkingDirectory(t *testing.T) {
var buff bytes.Buffer
e := task.NewExecutor(
task.WithDir("testdata/user_working_dir"),
task.WithEntrypoint("testdata/user_working_dir/Taskfile.yml"),
task.WithStdout(&buff),
task.WithStderr(&buff),
)