Skip to content

fix: watch in symlinked dirs#2550

Open
valoq wants to merge 2 commits intogokcehan:masterfrom
valoq:watch-fix
Open

fix: watch in symlinked dirs#2550
valoq wants to merge 2 commits intogokcehan:masterfrom
valoq:watch-fix

Conversation

@valoq
Copy link
Copy Markdown
Contributor

@valoq valoq commented Apr 26, 2026

fixes #2485

Copy link
Copy Markdown
Collaborator

@joelim-work joelim-work left a comment

Choose a reason for hiding this comment

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

I think this approach is fine, just track all watched paths separately instead of relying on Watcher.WatchList. But I think a mutex is not required for this - just make watch.paths owned by the watch goroutine, add a channel to register paths and finally clear it when loop terminates.

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.

'set watch' does not correctly refresh if pasting into a 'base' directory that's symlinked

2 participants