When a user declares their own lock directory in their workspace file: ``` (lock_dir (path custom.lock) (repositories mock)) ``` We run into issues when building like: ``` $ dune build Error: No rule found for default/.lock/dune.lock (context _private) [1] ``` Reproduction case and potential fix in #12712.