-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add transitive closure for re_exports in requires
Signed-off-by: Rudi Grinberg <[email protected]>
- Loading branch information
Showing
2 changed files
with
4 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,12 @@ | ||
dependencies can be exported transitively: | ||
$ dune exec ./foo.exe --root transitive | ||
Entering directory 'transitive' | ||
pkg.aaa: exported: pkg.bbb | ||
pkg.bbb: exported: pkg.ccc | ||
Entering directory 'transitive' | ||
ocamlc .foo.eobjs/byte/dune__exe__Foo.{cmi,cmo,cmt} (exit 2) | ||
(cd _build/default && /Users/rgrinberg/.opam/4.08.0/bin/ocamlc.opt -w @1..3@5[email protected]@[email protected]@[email protected] -strict-sequence -strict-formats -short-paths -keep-locs -g -bin-annot -I .foo.eobjs/byte -I .aaa.objs/byte -I .aaa.objs/native -no-alias-deps -opaque -o .foo.eobjs/byte/dune__exe__Foo.cmo -c -impl foo.ml) | ||
File "foo.ml", line 2, characters 11-14: | ||
2 | module B = Bbb | ||
^^^ | ||
Error (warning 49): no cmi file was found in path for module Bbb | ||
File "foo.ml", line 3, characters 11-14: | ||
3 | module C = Ccc | ||
^^^ | ||
Error (warning 49): no cmi file was found in path for module Ccc | ||
[1] | ||
|
||
transtive deps expressed in the dune-package | ||
|
||
$ dune build @install --root transitive | ||
Entering directory 'transitive' | ||
pkg.aaa: exported: pkg.bbb | ||
pkg.bbb: exported: pkg.ccc | ||
$ cat transitive/_build/install/default/lib/pkg/dune-package | ||
(lang dune 2.0) | ||
(name pkg) | ||
|
@@ -31,7 +16,7 @@ transtive deps expressed in the dune-package | |
(archives (byte aaa/aaa.cma) (native aaa/aaa.cmxa)) | ||
(plugins (byte aaa/aaa.cma) (native aaa/aaa.cmxs)) | ||
(foreign_archives (native aaa/aaa$ext_lib)) | ||
(requires pkg.bbb) | ||
(requires pkg.ccc pkg.bbb) | ||
(main_module_name Aaa) | ||
(modes byte native) | ||
(modules (singleton (name Aaa) (obj_name aaa) (visibility public) (impl))) | ||
|