Skip to content

Commit 0d5d415

Browse files
authored
test(include_subdirs): show missing dependency on module group (ocaml#12463)
Signed-off-by: Antonio Nuno Monteiro <[email protected]>
1 parent 6203a24 commit 0d5d415

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

test/blackbox-tests/test-cases/include-qualified/build-with-sandbox.t

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,26 @@ Transitive deps file includes the alias module
2626
$ cat _build/default/lib/.foo.objs/foo__Bar.impl.all-deps
2727
foo__Sub
2828
foo__Sub__Hello
29+
30+
$ cat > lib/dune <<EOF
31+
> (include_subdirs qualified)
32+
> (library (name foo))
33+
> EOF
34+
$ cat > lib/bar.ml <<EOF
35+
> let hello = Sub.Hello.hello ^ Sub.world
36+
> EOF
37+
$ cat > lib/sub/sub.ml <<EOF
38+
> module Hello = Hello
39+
> let world = "world"
40+
> EOF
41+
$ cat > lib/sub/hello.ml <<EOF
42+
> let hello = "hello from sub"
43+
> EOF
44+
45+
$ DUNE_SANDBOX=none dune build
46+
$ DUNE_SANDBOX=symlink dune build
47+
File "lib/bar.ml", line 1, characters 12-27:
48+
1 | let hello = Sub.Hello.hello ^ Sub.world
49+
^^^^^^^^^^^^^^^
50+
Error: The module Sub.Hello is an alias for module Foo__Sub__.Hello, which is missing
51+
[1]

0 commit comments

Comments
 (0)