mirror of
https://github.com/go-task/task.git
synced 2025-11-23 22:24:45 +02:00
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:
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"io"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@@ -121,6 +122,7 @@ type dirOption struct {
|
||||
}
|
||||
|
||||
func (o *dirOption) ApplyToExecutor(e *Executor) {
|
||||
e.UserWorkingDir, _ = filepath.Abs(o.dir)
|
||||
e.Dir = o.dir
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user