Skip to content

test(pkg): reproduce pkg enabled with watch server - #15588

Merged
Alizter merged 1 commit into
ocaml:mainfrom
Alizter:pkg-enabled-watch-server-repro
Jul 22, 2026
Merged

Alizter merged 1 commit into
ocaml:mainfrom
Alizter:pkg-enabled-watch-server-repro

Conversation

@Alizter

@Alizter Alizter commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

This adds a reproduction for #15587.

It demonstrates that dune pkg enabled succeeds for a package-enabled project before a passive watch server starts, but exits with a build-directory lock error while that server is running.

This PR intentionally contains only the reproduction; the fix is kept in a separate local commit.

@Alizter
Alizter merged commit 5790d8d into ocaml:main Jul 22, 2026
36 checks passed
@Alizter
Alizter deleted the pkg-enabled-watch-server-repro branch July 22, 2026 16:46
@Alizter Alizter added this to the 3.25.0 milestone Jul 23, 2026
Alizter added a commit that referenced this pull request Jul 27, 2026
Fixes #15587.

`dune pkg enabled` now queries a published Dune RPC server, so it
observes transient server-side `--pkg enabled` and `--pkg disabled`
settings without trying to acquire the build lock. When no server is
running, it retains the local workspace/lockdir check.

The effective package-management check is shared between the local and
server paths.

Follow-up to #15588.

Testing:
- `./dune.exe fmt`
- `./dune.exe build @check`
- scoped RPC and package/watch/lock tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant