-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add repro for gh10310 (#10330) Signed-off-by: Stephen Sherratt <stephen@sherra.tt> * Allow rules with directory targets to be disabled (again) (#10382) * Allow rules with directory targets to be disabled Previously attempting to disable a rule with a directory target would cause dune to crash. Fixes #10310 Signed-off-by: Stephen Sherratt <stephen@sherra.tt> --------- Signed-off-by: Stephen Sherratt <stephen@sherra.tt> Co-authored-by: Stephen Sherratt <stephen@sherra.tt>
- Loading branch information
Showing
3 changed files
with
52 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Fix crash when a rule with a directory target is disabled with `enabled_if` | ||
(#10382, fixes #10310, @gridbugs) |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Make sure that dune can handle rules with directory targets that are disabled | ||
with enabled_if. | ||
|
||
$ cat > dune-project <<EOF | ||
> (lang dune 3.14) | ||
> (using directory-targets 0.1) | ||
> EOF | ||
|
||
$ cat > dune <<EOF | ||
> (rule | ||
> (enabled_if false) | ||
> (target (dir x)) | ||
> (action (progn))) | ||
> EOF | ||
|
||
$ dune build |