We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7bf32c commit b1f77f1Copy full SHA for b1f77f1
src/dune_rules/format_rules.ml
@@ -33,9 +33,12 @@ end
33
34
module Ocamlformat = struct
35
let dev_tool_lock_dir_exists () =
36
- Lock_dir.dev_tool_external_lock_dir Ocamlformat
37
- |> Path.external_
38
- |> Path.Untracked.exists
+ (* we assume that if lock_dev_tools is set, then the lock dir was created
+ via locking and can expect it to exist. If it doesn't, it's a bug
+ *)
39
+ match Config.get Compile_time.lock_dev_tools with
40
+ | `Enabled -> true
41
+ | `Disabled -> false
42
;;
43
44
(* Config files for ocamlformat. When these are changed, running
0 commit comments