Skip to content

test: document resolve_program resolution in lock-kind contexts - #14737

Merged
Alizter merged 1 commit into
ocaml:mainfrom
punchagan:cram-resolve-program-lock-context
May 27, 2026
Merged

Alizter merged 1 commit into
ocaml:mainfrom
punchagan:cram-resolve-program-lock-context

Conversation

@punchagan

@punchagan punchagan commented May 26, 2026 •

Copy link
Copy Markdown
Contributor

This test aims to capture the current behavior when resolving programs
in stanzas like (ocamllex ...) or (menhir ...). The resolution
currently falls through to Pkg_rules.which that currently scans every
locked package's binary index. So, any binary installed by any locked
package is discoverable from any stanza.

But, this dependency also means that resolving the programs for these
stanzas has a dependency on building all the lockdir packages which is
one of the problems to be fixed for #8652.

@punchagan
punchagan force-pushed the cram-resolve-program-lock-context branch 3 times, most recently from 07dfa0a to 4f0a544 Compare May 27, 2026 11:44
@punchagan
punchagan marked this pull request as ready for review May 27, 2026 11:47
This test aims to capture the current behavior when resolving programs
in stanzas like `(ocamllex ...)` or `(menhir ...)`. The resolution
currently falls through to `Pkg_rules.which` that currently scans every
locked package's binary index. So, any binary installed by any locked
package is discoverable from any stanza.

But, this dependency also means that resolving the programs for these
stanzas has a dependency on building all the lockdir packages which is
one of the problems to be fixed for ocaml#8652.

Signed-off-by: Puneeth Chaganti <[email protected]>
@Alizter
Alizter merged commit 2fd4cdb into ocaml:main May 27, 2026
29 checks passed
@Alizter Alizter added this to the 3.25.0 milestone Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants