Repository navigation
feat(pkg): install layouts for package sets - #14373
Merged
Merged
Conversation
Alizter
force-pushed
the
push-nkmrmtxvyunk
branch
from
April 29, 2026 20:34
465d843 to
3dc8980
Compare
Alizter
commented
Apr 29, 2026
Alizter
force-pushed
the
push-nkmrmtxvyunk
branch
19 times, most recently
from
May 2, 2026 02:05
7abe25a to
2cb8e69
Compare
rgrinberg
reviewed
May 3, 2026
rgrinberg
reviewed
May 3, 2026
rgrinberg
reviewed
May 3, 2026
rgrinberg
reviewed
May 3, 2026
Member
|
Looks like this is on the right track. Why do you bother to preserve the old behavior? Do you think there was a way to reasonably way to depend on it by users? |
Alizter
force-pushed
the
push-nkmrmtxvyunk
branch
5 times, most recently
from
May 25, 2026 01:22
e74f6b1 to
c00311d
Compare
rgrinberg
approved these changes
May 25, 2026
`(deps (package ...))` materializes a scoped install layout under `_build/install/<context>/.packages/<digest>/` containing only the declared package dependencies. This replaces the old alias-based mechanism where `(deps (package foo))` populated the shared `_build/install/` staging area, making every package in the workspace discoverable regardless of what was declared. The layout includes only immediate deps (no transitive closure). Actions should declare what they need explicitly. Environment variables (PATH, OCAMLPATH, CAML_LD_LIBRARY_PATH, OCAMLFIND_IGNORE_DUPS_IN, OCAMLTOP_INCLUDE_PATH, MANPATH) are set from the layout directory and consed onto the directory env via extend_action. The layout only applies to workspace packages. Lock-dir packages and the site/plugin system are unaffected. See doc/dev/install-layouts.md for design details and known limitations. Signed-off-by: Ali Caglayan <[email protected]>
4 tasks
This was referenced Aug 18, 2026
This was referenced Oct 5, 2026
This was referenced Oct 30, 2026
This was referenced Nov 18, 2026
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.
(deps (package ...))materializes a scoped install layout under_build/install/<context>/.packages/<digest>/containing only the declared package dependencies. This replaces the old alias-based mechanism where(deps (package foo))populated the shared_build/install/staging area, making every package in the workspace discoverable regardless of what was declared.The layout includes only immediate deps (no transitive closure). Actions should declare what they need explicitly. Environment variables (
PATH,OCAMLPATH,CAML_LD_LIBRARY_PATH,OCAMLFIND_IGNORE_DUPS_IN,OCAMLTOP_INCLUDE_PATH,MANPATH) are set from the layout directory and consed onto the directory env viaextend_action.The layout only applies to workspace packages. Lock-dir packages and the site/plugin system are unaffected.
See
doc/dev/install-layouts.mdfor design details.Related:
doc/dev/install-layouts.md)Follow-up
dune utop,dune rocq top, anddune ocaml top/top-moduleBuildand don't set up layout env varsextract aDigest_keyfunctor to dedupeInstall_layout.Key/Bin_layout.Key/Ppx_driver.KeyContext.for_hostfallback into a single helper(deps (package ...))path