Skip to content

fix(package-deps): work around overlapping sandbox inputs - #16664

Closed
Alizter wants to merge 1 commit into
ocaml:mainfrom
Alizter:push-nqvynopyotxy
Closed

Alizter wants to merge 1 commit into
ocaml:mainfrom
Alizter:push-nqvynopyotxy

Conversation

@Alizter

@Alizter Alizter commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Use per-file package dependencies to work around the sandbox overlap bug exposed by #16507, without engine changes.

Fixes #16547.

Restore per-file tracking from ec4d25b, the earlier version of ocaml#16507,
and apply it to the full lock-package dependency closure. Document that
this works around the engine bug with overlapping directory dependencies.

Update the binary and library-closure expectations. Leave cookie-load
deduplication for a follow-up and record the current per-rule loads.

Fixes ocaml#16547

Signed-off-by: Ali Caglayan <[email protected]>
@Alizter

Alizter commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator Author

Will aim this directly at 3.25

@shonfeder

Copy link
Copy Markdown
Member

Reopening, as I'd like to ensure that this gets into the trunk and that we cherry pick it from there. I'll bring the discussion to zulip!

@shonfeder

Copy link
Copy Markdown
Member

Relaying here to ensure that we have a visible record of the decisions we are making:

In conversation with @rgrinberg in Zulip at #dune > releases @ 💬 he exlpained that he objected to merging this workaround into the trunk do a performance regression it would introduce on package solving, turning "an operation that is O(1) per package dependency into O(number of files in the package) per package dependency'. I agree that this is a compelling, practical reason why this workaround is not suitable, and instead requires the root cause to be fixed, so I'll close this again.

@shonfeder shonfeder closed this Oct 23, 2026
@shonfeder shonfeder mentioned this pull request Oct 23, 2026
62 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running a binary in a rule with a (deps (package <p>)) on it's provider package fails with a symlink error

2 participants