Skip to content

Commit 79f60cb

Browse files
committed
Replace "dune external-lib-deps" command
The new version of dune (from 3.0.0) removed "dune external-lib-deps" and this is a patch that work with a patch of dune from "https://github.com/moyodiallo/dune/tree/opam-dune-lint". There's already a PR(ocaml/dune#6045) in dune about this patch, but not guarantee to be merged. The command may change also.
1 parent d98e96a commit 79f60cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: dune_project.ml

+1-2
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,8 @@ module Deps = struct
118118
(* We use [tmp_dir] so that "--only-packages" doesn't invalidate the existing build. *)
119119
let dune_external_lib_deps ~tmp_dir ~pkg ~target =
120120
let tmp_dir = Fpath.to_string tmp_dir in
121-
Bos.Cmd.(v "dune" % "external-lib-deps" % "--only-packages" % pkg
121+
Bos.Cmd.(v "dune" % "build" % "--external-lib-deps=sexp" % "--only-packages" % pkg
122122
% "--build-dir" % tmp_dir
123-
% "--sexp" % "--unstable-by-dir"
124123
% target)
125124

126125
let has_dune_subproject = function

0 commit comments

Comments
 (0)