Skip to content

fix(cli): recursive paths provided by user getting treated non-recursively#828

Merged
passcod merged 1 commit intowatchexec:mainfrom
adit-umakanth:main
Apr 30, 2024
Merged

fix(cli): recursive paths provided by user getting treated non-recursively#828
passcod merged 1 commit intowatchexec:mainfrom
adit-umakanth:main

Conversation

@adit-umakanth
Copy link
Copy Markdown
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
Copy Markdown
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
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.

2 participants