Repository navigation
fix(pkg): evaluate local dependency formulas the way the solver does - #15618
Merged
Merged
Conversation
Alizter
force-pushed
the
push-wsmwprqlrxyp
branch
2 times, most recently
from
July 29, 2026 12:36
87fb9c8 to
99177b7
Compare
Alizter
marked this pull request as ready for review
July 29, 2026 12:36
Alizter
force-pushed
the
push-wsmwprqlrxyp
branch
2 times, most recently
from
July 29, 2026 12:46
59a8574 to
cbe1106
Compare
punchagan
approved these changes
Jul 30, 2026
Alizter
force-pushed
the
push-wsmwprqlrxyp
branch
from
July 30, 2026 14:22
cbe1106 to
72f9eba
Compare
Factor the solver's local-package dependency-formula evaluation (self bindings, running Dune version injection, and stripping of the Dune pseudo-package) into a single shared helper Lock_pkg.local_package_dependencies, used by both the solver and Package_universe so the two can no longer drift. This fixes Package_universe reporting a freshly generated lockdir as having no solution for a local package that depends directly on dune, and validation silently dropping version constraints that refer to the depending package's own version instead of binding it. Signed-off-by: Ali Caglayan <[email protected]>
Alizter
force-pushed
the
push-wsmwprqlrxyp
branch
from
July 31, 2026 13:47
72f9eba to
c08fe07
Compare
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.
Description
Factor local-package dependency-formula evaluation into
Lock_pkg.local_package_dependenciesand use it from both the solver andPackage_universe.The shared path binds the local package name and version as self variables, injects the running Dune version, and removes the Dune pseudo-package from the concrete dependency list. This keeps validation aligned with lock solving and fixes both self-referencing version constraints and direct dependencies on Dune.
Related Issue and Motivation
Depends on #15617, which adds the self-referencing constraint regression test. This PR is stacked on that change and remains a draft while the predecessor is under review.
Checklist