Skip to content

Fix simulated pinned packages reinstall trigger#6522

Merged
rjbou merged 1 commit intoocaml:masterfrom
rjbou:fix-pin-reinstall-simulated
Jun 6, 2025
Merged

Fix simulated pinned packages reinstall trigger#6522
rjbou merged 1 commit intoocaml:masterfrom
rjbou:fix-pin-reinstall-simulated

Conversation

@rjbou
Copy link
Copy Markdown
Collaborator

@rjbou rjbou commented May 23, 2025

partial fix of #6501

@rjbou rjbou requested a review from kit-ty-kate May 23, 2025 16:48
@rjbou rjbou changed the title Fix simulaed pinned packages reinstall trigger Fix simulated pinned packages reinstall trigger May 23, 2025
@rjbou rjbou force-pushed the fix-pin-reinstall-simulated branch from a390d05 to af29882 Compare May 26, 2025 15:49
@kit-ty-kate kit-ty-kate added this to the 2.4.0~alpha3 milestone May 27, 2025
@rjbou rjbou force-pushed the fix-pin-reinstall-simulated branch from af29882 to fbf4fe3 Compare June 4, 2025 18:56
Comment on lines +38 to +41
=== recompile 1 package
- recompile reinst 1 (pinned) [uses dep-reinst]
=== upgrade 1 package
- upgrade dep-reinst 1 to 2 [required by reinst]
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

cf #6522 (comment)

This should be rejected because the dependency constraints from the pinned package and the requested deps are conflicting.

Issue #6529 & fixed #6530

Comment on lines +34 to +36
### opam install ./reinst --deps-only
[reinst.1] synchronised (file://${BASEDIR}/reinst)
[reinst] Installing new package description from upstream file://${BASEDIR}/reinst
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

cf comment #6522 (comment)

Similarly, this should not happen as we are trying to install only the dependency of that package, not the package itself.

Issue #6532 & fixed in #6533

The diff was done on already pinned packages only, not newly simulated pinned packages
@kit-ty-kate kit-ty-kate force-pushed the fix-pin-reinstall-simulated branch from fbf4fe3 to 227ddb0 Compare June 6, 2025 10:36
@rjbou rjbou merged commit 708d62e into ocaml:master Jun 6, 2025
44 checks passed
rjbou added a commit to rjbou/opam that referenced this pull request Jun 13, 2025
rjbou added a commit to rjbou/opam that referenced this pull request Jun 13, 2025
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.

2 participants