Repository navigation
Conversation
Alizter
force-pushed
the
push-poklntzrmvnz
branch
from
October 22, 2025 14:03
857b85a to
af581f6
Compare
Signed-off-by: Ali Caglayan <[email protected]>
We allow symlinks to appear inside directory targets with some limitations. Symlinks are not permitted to point outside of the directory target they are inside. Signed-off-by: Ali Caglayan <[email protected]>
Alizter
force-pushed
the
push-poklntzrmvnz
branch
from
October 22, 2025 14:20
af581f6 to
7ac7240
Compare
rgrinberg
requested changes
Oct 22, 2025
| | Error No_such_file -> report_user_error [] | ||
| | Error Broken_symlink -> report_user_error [ Pp.text "Broken symbolic link" ] | ||
| | Error Cyclic_symlink -> report_user_error [ Pp.text "Cyclic symbolic link" ] | ||
| | Error (Symlink_escapes_target path) -> |
Member
There was a problem hiding this comment.
When is this code path possible?
Collaborator
Author
|
After some discussion about this it seems supporting directory symlinks inside directory targets might need a little bit more thinking and design than we can spare at the moment. Coming back to the original issue #9873, it only seems to occur with pathological examples. I have yet to see a package where a directory symlink is a critical part of the build and dune does not offer a sound work-around. Many packages that appear in practice can therefore be patched in our pkg overlays, as we have done for If the need arises in the future that a commonly used package needs this feature, then it would be enough motivation to rethink the solution here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #9873
Aims to supersede #10426
We allow symbolic links to appear inside directory targets with some limitations. Symbolic links are not permitted to point outside of the directory target they are inside. We also forbid symbolic links to absolute directories from occurring inside directory targets.