Skip to content

Commit

Permalink
Replace "dune external-lib-deps" command
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
moyodiallo committed Sep 20, 2022
1 parent fa22308 commit 34b777e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dune_project.ml
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ module Deps = struct
(* We use [tmp_dir] so that "--only-packages" doesn't invalidate the existing build. *)
let dune_external_lib_deps ~tmp_dir ~pkg ~target =
let tmp_dir = Fpath.to_string tmp_dir in
Bos.Cmd.(v "dune" % "external-lib-deps" % "--only-packages" % pkg
Bos.Cmd.(v "dune" % "build" % "--external-lib-deps=sexp" % "--only-packages" % pkg
% "--build-dir" % tmp_dir
% "--sexp" % "--unstable-by-dir"
% target)

let has_dune_subproject = function
Expand Down

0 comments on commit 34b777e

Please sign in to comment.