-
Notifications
You must be signed in to change notification settings - Fork 13
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
Removing a symlink looks like removing its target #41
Comments
This is on linux. Not sure if it looks the same on other platforms. |
What would be the expected behaviour from a build system perspective? I would assume queries/reads should follow symlinks but deletes shouldn't, what do you think? |
@fangism ping |
[Sorry, I've been out for a few weeks.] From the original comment, this might seem more reasonable:
But I haven't dug into the details of how operations on symlinks are traced. |
If queries/reads don't follow symlinks that would put a burden on the build system. The one I'm using would certainly need to be modified to take into account this fact. I propose to report the symlink only when deleting, reporting the linked file elsewhere. Do you have any example of a situation where this would be a problem in a build system? |
Using the above |
|
This is an improvement, and should let us proceed further. |
Removing a symbolic link looks like removing the link's destination (but perhaps should not?).
Demonstration:
Destination
foo
is unaffected.I expected something more like:
The text was updated successfully, but these errors were encountered: