Skip to content

test(pkg): stale lockdir with a workspace/lockdir name collision - #15620

Merged
Alizter merged 1 commit into
ocaml:mainfrom
Alizter:push-oluwzptvnysp
Jul 31, 2026
Merged

Alizter merged 1 commit into
ocaml:mainfrom
Alizter:push-oluwzptvnysp

Conversation

@Alizter

@Alizter Alizter commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Description

Add a regression test for a lockdir that is both out of sync with the project and contains a package whose name is now defined locally.

Validation currently reports the workspace/lockdir name collision first, even though the collision is a symptom of staleness and relocking would remove the locked package. This captures the current behavior before the validation-ordering fix.

Related Issue and Motivation

Part of #8652.

Checklist

  • Tests added, if applicable.
  • Change log entry not applicable; this is a test-only change.
  • Documentation not applicable; this is a test-only change.

A lockdir can be simultaneously out of sync with the project and
collide with a local package name; the collision is then a symptom of
the staleness, since relocking removes the package from the lockdir.
Validation currently reports the collision rather than the staleness.

Signed-off-by: Ali Caglayan <[email protected]>
@Alizter
Alizter force-pushed the push-oluwzptvnysp branch from a430b1e to 82ffcb6 Compare July 31, 2026 14:00
@Alizter
Alizter merged commit 156eb7a into ocaml:main Jul 31, 2026
37 checks passed
@Alizter
Alizter deleted the push-oluwzptvnysp branch July 31, 2026 15:15
@Alizter Alizter added this to the 3.25.0 milestone Aug 1, 2026
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.

1 participant