1
0
mirror of https://github.com/go-task/task.git synced 2025-01-22 05:10:17 +02:00

Move directory creation

This commit is contained in:
Wolf Mermelstein 2024-09-30 17:45:11 -04:00
parent a6b02dc6ba
commit 52014cd76e

View File

@ -168,6 +168,11 @@ func (e *Executor) splitRegularAndWatchCalls(calls ...*ast.Call) (regularCalls [
// RunTask runs a task by its name
func (e *Executor) RunTask(ctx context.Context, call *ast.Call) error {
t, err := e.FastCompiledTask(call)
if err := e.mkdir(t); err != nil {
e.Logger.Errf(logger.Red, "task: cannot make directory %q: %v\n", t.Dir, err)
}
if err != nil {
return err
}