Skip to content

Commit

Permalink
test: data_only_dirs and aliases (#7129
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg authored Feb 21, 2023
1 parent 0c287fa commit da389a5
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/blackbox-tests/test-cases/subdir-stanza/recursive-alias.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Aliases defined in data_only_dirs aren't traversed

$ cat >dune-project <<EOF
> (lang dune 3.8)
> EOF

$ cat >dune<<EOF
> (subdir foo
> (rule
> (alias run)
> (deps (universe))
> (action (echo run alias))))
> EOF

$ dune build @run
run alias

$ cat >> dune <<EOF
> (data_only_dirs foo)
> EOF

$ dune build @run
Error: Alias "run" specified on the command line is empty.
It is not defined in . or any of its descendants.
[1]

0 comments on commit da389a5

Please sign in to comment.