Skip to content

Conversation

rgrinberg
Copy link
Member

From the commit that fixes the issue:

Automatically make dune pin itself. We're going to assume that the dune
we're using right now is the one that will be used to run the build
plan.

Perhaps this behavior isn't always deired. We could imagine wanting to
produce build plans for older or newer dunes. For now, this is a good
default though.

A separate commit is made for a small preliminary refactoring to ease reviewing.

Fixes #12381

@rgrinberg rgrinberg requested a review from gridbugs October 16, 2025 01:45
@rgrinberg rgrinberg force-pushed the fix-12381 branch 2 times, most recently from c67cc3b to 6ab69e5 Compare October 16, 2025 10:40
Signed-off-by: Rudi Grinberg <[email protected]>
The version of dune inside the opam repo is overriding the version of
dune that is being used. That seems wrong. At least most of the time.

Signed-off-by: Rudi Grinberg <[email protected]>
Fuse it with [git_repo] since that is the only place where it's needed

Signed-off-by: Rudi Grinberg <[email protected]>
Automatically make dune pin itself. We're going to assume that the dune
we're using right now is the one that will be used to run the build
plan.

Perhaps this behavior isn't always deired. We could imagine wanting to
produce build plans for older or newer dunes. For now, this is a good
default though.

Addresses #12381

Signed-off-by: Rudi Grinberg <[email protected]>
Copy link
Collaborator

@gridbugs gridbugs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good. Out of curiosity, what's the initial empty commit with message dev? Was that generated by some tooling? Should that be removed before merging?

@rgrinberg
Copy link
Member Author

The dev commit will go away when I squash

@rgrinberg rgrinberg enabled auto-merge (squash) October 21, 2025 23:56
@rgrinberg rgrinberg disabled auto-merge October 22, 2025 09:29
@rgrinberg rgrinberg merged commit 04ef103 into main Oct 22, 2025
26 checks passed
@rgrinberg rgrinberg deleted the fix-12381 branch October 22, 2025 09:29
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.

dune pkg lock can select packages incompatible with itself

3 participants