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(cli): recursive paths provided by user getting treated non-recursively #828

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

adit-umakanth
Copy link
Contributor

I ran into an issue where I provided a directory using the --watch flag but it gets treated non-recursively:
watchexec -vvv --watch in -- ls -a
Relevant log output (with path obscured):
effective watched paths paths=[WatchedPath { path: "..in", recursive: false }]

With the change from this PR:
effective watched paths paths=[WatchedPath { path: "..in", recursive: true }]

The behavior is now as expected. I'm assuming this was just a missed line when the non-recursive watch feature was added.

Copy link
Member

@passcod passcod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, that's embarrassing. Thanks for this!

@passcod passcod changed the title fixed recursive paths provided by user getting treated non-recursively fix(cli): recursive paths provided by user getting treated non-recursively Apr 30, 2024
@passcod passcod enabled auto-merge (squash) April 30, 2024 06:51
@passcod passcod merged commit 4affed6 into watchexec:main Apr 30, 2024
8 checks passed
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.

None yet

2 participants