-
-
Notifications
You must be signed in to change notification settings - Fork 816
Task directory precedence #2545
Copy link
Copy link
Closed as not planned
Labels
state: awaiting responseWaiting for issue author to respond.Waiting for issue author to respond.state: working as intendedThe issue described is working as originally intended.The issue described is working as originally intended.
Metadata
Metadata
Assignees
Labels
state: awaiting responseWaiting for issue author to respond.Waiting for issue author to respond.state: working as intendedThe issue described is working as originally intended.The issue described is working as originally intended.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
I expected/hoped that defining a dir for a task would mean that any command (e.g cmds, calling other tasks, or dynamic vars) would be executed with that directory as a base. The same goes for including a Taskfile with a dir entry.
But this task definition shows that vars and subcommands are executed against the directory the Taskfile was found in. The same goes for includes with a dir entry set, these are also executed against the parent Taskfiles directory.
This makes it difficult to define reusable tasks which act on the directory of the calling task.
If this is the intended functionality, could a flag be added to allow the behaviour that I was expecting?
Version
3.45.5
Operating system
macOS
Experiments Enabled
No response