Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: taskfile directory #1530

Merged
merged 2 commits into from Mar 4, 2024
Merged

fix: taskfile directory #1530

merged 2 commits into from Mar 4, 2024

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
13 checks passed
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3.35.0 Regression: Source paths will always be returned as paths relative to the task directory
1 participant