Skip to content

test(pkg): target contexts fall back to the default lockdir - #15621

Open
Alizter wants to merge 1 commit into
ocaml:mainfrom
Alizter:push-vurktvwxmlot
Open

Alizter wants to merge 1 commit into
ocaml:mainfrom
Alizter:push-vurktvwxmlot

Conversation

@Alizter

@Alizter Alizter commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Description

Add regression coverage showing that a findlib-toolchain target context does not inherit the lockdir selected by its owning base context.

The target context currently falls back to dune.lock, so it can build a different package version from the base context. The test also covers a native-only workspace where the selected non-default lockdir should be sufficient.

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 findlib-toolchain target context (named <base>.<toolchain>) does not
inherit the lock dir selected by its owning base context: it silently
falls back to dune.lock, building a different package than the base
context would.

Signed-off-by: Ali Caglayan <[email protected]>
@Alizter
Alizter force-pushed the push-vurktvwxmlot branch from 07e33c6 to b4b540d Compare August 5, 2026 13:23

This branch has not been deployed

No deployments
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