-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: evaluate directory targets enabled_if in parallel map (#10402)
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
- Loading branch information
Showing
3 changed files
with
32 additions
and
28 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
22 changes: 11 additions & 11 deletions
22
test/blackbox-tests/test-cases/coq/coqdoc-dir-target-clash.t/run.t
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,20 +1,20 @@ | ||
We try to build the documentation but there will be a clash between the | ||
directory targets. Notice how the tex one fails before html one. | ||
directory targets. | ||
$ dune build @check | ||
Warning: Coq Language Versions lower than 0.8 have been deprecated in Dune | ||
3.8 and will be removed in an upcoming Dune version. | ||
Hint: To disable this warning, add the following to your dune-project file: | ||
(warnings (deprecated_coq_lang_lt_08 disabled)) | ||
File "dune", lines 9-15, characters 0-116: | ||
9 | (rule | ||
10 | (targets | ||
11 | (dir base.tex)) | ||
12 | (action | ||
13 | (progn | ||
14 | (run mkdir base.tex) | ||
15 | (run touch base.tex/base.base.tex)))) | ||
File "dune", lines 1-7, characters 0-120: | ||
1 | (rule | ||
2 | (targets | ||
3 | (dir base.html)) | ||
4 | (action | ||
5 | (progn | ||
6 | (run mkdir base.html) | ||
7 | (run touch base.html/base.base.html)))) | ||
Error: The following both define the same directory target: | ||
_build/default/base.tex | ||
- dune:9 | ||
_build/default/base.html | ||
- dune:1 | ||
- dune:17 | ||
[1] |
9 changes: 7 additions & 2 deletions
9
test/blackbox-tests/test-cases/directory-targets/duplicate-target.t/run.t
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,7 +1,12 @@ | ||
Duplicate directory targets | ||
|
||
$ dune build | ||
Error: Multiple rules generated for _build/default/foo: | ||
- dune:5 | ||
File "dune", lines 1-3, characters 0-53: | ||
1 | (rule | ||
2 | (targets (dir foo)) | ||
3 | (action (run mkdir foo))) | ||
Error: The following both define the same directory target: | ||
_build/default/foo | ||
- dune:1 | ||
- dune:5 | ||
[1] |