Skip to content

Fix opam install --deps-only using the opam description of the wrong package in some cases#6544

Merged
kit-ty-kate merged 2 commits intoocaml:masterfrom
kit-ty-kate:fix-wrong-opam-def-deps-only
Jun 17, 2025
Merged

Fix opam install --deps-only using the opam description of the wrong package in some cases#6544
kit-ty-kate merged 2 commits intoocaml:masterfrom
kit-ty-kate:fix-wrong-opam-def-deps-only

Conversation

@kit-ty-kate
Copy link
Copy Markdown
Member

Fixes #6535

#6530 fixed the issue in the solver but created a discrepancy between what the solver gives displays and what is actually going to be executed.

To fix this we simply move the bit that re-add the non-simulated opam definitions, up before any solver/actions, and after any code specific to --deps-only where we actually need those information.

After careful review of the different usages of the autopin system, i think most other commands do not require fixes, at the exception of:

@kit-ty-kate kit-ty-kate added this to the 2.4.0~alpha3 milestone Jun 12, 2025
@kit-ty-kate kit-ty-kate requested a review from rjbou June 12, 2025 19:17
Copy link
Copy Markdown
Collaborator

@rjbou rjbou left a comment

Choose a reason for hiding this comment

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

Well placed!

@kit-ty-kate kit-ty-kate force-pushed the fix-wrong-opam-def-deps-only branch from 1747903 to 583f7b3 Compare June 17, 2025 14:40
@kit-ty-kate kit-ty-kate force-pushed the fix-wrong-opam-def-deps-only branch from 583f7b3 to 94b610f Compare June 17, 2025 14:42
@kit-ty-kate kit-ty-kate mentioned this pull request Jun 17, 2025
@kit-ty-kate kit-ty-kate merged commit 5be434c into ocaml:master Jun 17, 2025
44 checks passed
@kit-ty-kate kit-ty-kate deleted the fix-wrong-opam-def-deps-only branch June 17, 2025 16:54
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.

opam install --deps-only uses the wrong opam definition when building a package

2 participants