Skip to content

Commit acc46e8

Browse files
committed
Remove --with-deps flag if --with-modules is false for dune dependencies
1 parent 8399d3b commit acc46e8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/bin/dune.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ let run path (`Type type_) (`Tred_modules tred_modules) (`Tred_libraries tred_li
1414
Fpath.parent f
1515
in
1616
let+ s = OS.Dir.with_current dir (fun () ->
17-
(* TODO: don't add --with-deps if with_modules = false *)
18-
let dune_describe = Cmd.(v "dune" % "describe" % "workspace" % "--with-deps") in
17+
let dune_describe = Cmd.(v "dune" % "describe" % "workspace" %% on with_modules (v "--with-deps")) in
1918
match with_pps with
2019
| None ->
2120
begin match OS.Cmd.(run_out Cmd.(dune_describe % "--with-pps") |> out_string) with

0 commit comments

Comments
 (0)