Skip to content

Conversation

pd93
Copy link
Member

@pd93 pd93 commented Mar 4, 2024

Fixes #1529

This issue was caused by a change in #1483 that moved where the Taskfile directory was calculated. This resulted in Task behaving weirdly in situations where a Taskfile is located in a parent directory to the user's current working directory. This was partly fixed in #1522. However, the core issue still remained.

This PR fixes any remaining related issues by moving the directory calculation entirely into the NewRootNode() function and then fetching the calculated dir from the resulting node in e.Setup(). The node creation has also been moved earlier in the executor setup in order to fix another unreported bug where the temporary .task directory was created in the wrong place.

@pd93 pd93 merged commit 3c05c9c into main Mar 4, 2024
@pd93 pd93 deleted the fix-taskfile-directory branch March 4, 2024 11:34
pd93 added a commit that referenced this pull request Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant