Skip to content

test: lock subdirectories - #14522

Merged
Alizter merged 1 commit into
ocaml:mainfrom
Alizter:push-nlxppyvmwozu
May 13, 2026
Merged

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

Conversation

@Alizter

@Alizter Alizter commented May 13, 2026 •

Copy link
Copy Markdown
Collaborator

@Alizter
Alizter marked this pull request as ready for review May 13, 2026 23:17
@Alizter Alizter added the package management Dune's package management — `(pkg)` stanza, lockdirs, `dune pkg` commands label May 13, 2026
@Alizter
Alizter requested review from ElectreAAS and removed request for ElectreAAS May 13, 2026 23:17
Signed-off-by: Ali Caglayan <[email protected]>
@Alizter
Alizter force-pushed the push-nlxppyvmwozu branch from 877fb66 to 3129cb2 Compare May 13, 2026 23:31
@Alizter
Alizter merged commit 3188c1f into ocaml:main May 13, 2026
29 checks passed
@Alizter
Alizter deleted the push-nlxppyvmwozu branch May 13, 2026 23:48
shonfeder added a commit that referenced this pull request May 15, 2026
Fixes #14523.

Two places assumed single-segment lock_dir paths:

- `Lock_rules.setup_rules` only handled `components = [".lock"]` and
fell through to empty rules for deeper paths. Adds a `".lock" :: _ :: _`
arm that returns `redirect_to_parent`, mirroring the pattern `Pkg_rules`
uses for `.pkg/<digest>` sub-paths.
- `Workspace.source_path_of_lock_dir_path` only matched a 4-component
build path; generalised to any `_ :: _ :: ".lock" :: (_ :: _ as segs)`.

Builds on #14522.
@Alizter Alizter added this to the 3.24.0 milestone Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package management Dune's package management — `(pkg)` stanza, lockdirs, `dune pkg` commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant