Skip to content

Conversation

@trulede
Copy link
Contributor

@trulede trulede commented Feb 7, 2026

When searching for a Taskfile, and the directory ownership changes, provide a message indicating that.

In implementing this change, I noticed that the handling of TaskfileNotFoundError in setup.go would never be hit (bug) and also that the code in fs.go was a little odd - in so much that detecting this condition required returning valid paths and an err, which in many cases the caller would ignore anyway. But I think its OK, just a bit odd.

~/git$ task --list-all
task: No Taskfile found at "" (or any of the parent directories until ownership changed). Run `task --init` to create a new Taskfile.

Fixes #1683

@trulede trulede force-pushed the PR/error-on-ownerchange branch from 1b52019 to fbea9b6 Compare February 8, 2026 00:41
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.

Clearly error when ownership check fails when walking parent directories to find a Taskfile

1 participant