-
Notifications
You must be signed in to change notification settings - Fork 397
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stricter validation of select filenames.
Now any filenames that appears in the choice position, must now be based on the filename of the result. Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
- Loading branch information
Showing
9 changed files
with
65 additions
and
15 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
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,19 @@ | ||
$ echo "(lang dune 2.0)" > dune-project | ||
$ cat > dune <<EOF | ||
> (library (name foo) (libraries (select foo.ml from (!bar -> f.ml)))) | ||
> EOF | ||
$ dune build | ||
File "dune", line 1, characters 60-64: | ||
1 | (library (name foo) (libraries (select foo.ml from (!bar -> f.ml)))) | ||
^^^^ | ||
Error: The format for files in this select branch must be foo.{name}.ml | ||
[1] | ||
$ cat > dune <<EOF | ||
> (library (name foo) (libraries (select foo.ml from (!bar -> foo.mli)))) | ||
> EOF | ||
$ dune build | ||
File "dune", line 1, characters 60-67: | ||
1 | (library (name foo) (libraries (select foo.ml from (!bar -> foo.mli)))) | ||
^^^^^^^ | ||
Error: The format for files in this select branch must be foo.{name}.ml | ||
[1] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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