Skip to content

Fix switch & repo format upgrade#6839

Merged
kit-ty-kate merged 2 commits intoocaml:masterfrom
rjbou:lock-gt
Dec 22, 2025
Merged

Fix switch & repo format upgrade#6839
kit-ty-kate merged 2 commits intoocaml:masterfrom
rjbou:lock-gt

Conversation

@rjbou
Copy link
Copy Markdown
Collaborator

@rjbou rjbou commented Dec 18, 2025

Seen on #6393 (#6393 (comment)). The lock can't be acquired when opam want to write the new repo state on Windows. That was caused by taking a new OpamSystem.lock on the lock file instead of reusing the already created one and update its system lock.
Introduced in #5305, related to #6417

@rjbou rjbou requested review from dra27 and kit-ty-kate December 18, 2025 16:57
@rjbou rjbou mentioned this pull request Dec 18, 2025
7 tasks
Copy link
Copy Markdown
Member

@kit-ty-kate kit-ty-kate left a comment

Choose a reason for hiding this comment

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

lgtm modulo typo and green CI state on #6393 whenever it is rebased on top of this

… one

Recreating the lock reopened the fd on the lock file causing a block when the write lock was taken.
@kit-ty-kate kit-ty-kate merged commit 40d1989 into ocaml:master Dec 22, 2025
47 checks passed
@kit-ty-kate
Copy link
Copy Markdown
Member

Thanks!

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