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

Only invalidate part of the VFS when trying to watch a symlink on macOS #13918

Open
wolfs opened this issue Jul 24, 2020 · 1 comment
Open

Only invalidate part of the VFS when trying to watch a symlink on macOS #13918

wolfs opened this issue Jul 24, 2020 · 1 comment
Labels
a:feature A new functionality in:virtual-file-system VFS, file system watching, snapshots

Comments

@wolfs
Copy link
Member

wolfs commented Jul 24, 2020

Currently, Gradle stops watching altogether on macOS when a watched directory or its parent is a symlink (#13755). On macOS, /var is a symlink to /private/var and the temporary directory is in /var. That means that whenever temporary files are build inputs. Gradle would stop watching on macOS.

This was a problem when using Gradle profiler, since it adds some JARs for instrumentation in the temp folder as classpath of an init script. Gradle profiler now passes the canonical path to the init script, so that is not a problem any more (gradle/gradle-profiler#222).

Note that we we only watch the project directory and nothing else, this problem goes away. See #13887.


cc: @gradle/execution

@stale
Copy link

stale bot commented Apr 17, 2022

This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution.

@stale stale bot added the stale label Apr 17, 2022
@wolfs wolfs added in:virtual-file-system VFS, file system watching, snapshots and removed stale labels Apr 19, 2022
@ov7a ov7a added the a:feature A new functionality label Aug 10, 2023
@lptr lptr removed the @execution label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:feature A new functionality in:virtual-file-system VFS, file system watching, snapshots
Projects
None yet
Development

No branches or pull requests

4 participants