-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[coq] Fix coqlib file scanning. (#7954)
The old code did indeed was nonsense, and among others was filtering all the files due to the `String.contains d '.'` condition. I wonder how the test for updating a file in user-contrib did pass tho, that seems pretty strange, as indeed we were not adding any .vo file to the .vo file list on the user-contrib deps, so this deserves more investigation. Fixes #7893 , thanks to Karl Palmskog for testing and detailed report. Signed-off-by: Emilio Jesus Gallego Arias <[email protected]> Co-authored-by: Emilio Jesus Gallego Arias <[email protected]>
- Loading branch information
Showing
22 changed files
with
282 additions
and
85 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
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
15 changes: 15 additions & 0 deletions
15
test/blackbox-tests/test-cases/coq/compose-installed-plugin.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Test for https://github.com/ocaml/dune/issues/7893 | ||
When using an installed theory with plugins, things should work fine. | ||
|
||
$ dune build --root to_install @all | ||
Entering directory 'to_install' | ||
Hello | ||
Leaving directory 'to_install' | ||
$ dune install --root to_install --prefix=$PWD | ||
|
||
We now build the normal theory, and should work | ||
|
||
$ COQPATH=$PWD/lib/coq/user-contrib dune build --root user @all | ||
Entering directory 'user' | ||
Hello | ||
Leaving directory 'user' |
4 changes: 4 additions & 0 deletions
4
test/blackbox-tests/test-cases/coq/compose-installed-plugin.t/to_install/dune-project
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,4 @@ | ||
(lang dune 3.8) | ||
(using coq 0.8) | ||
|
||
(package (name global)) |
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/coq/compose-installed-plugin.t/to_install/plugin/dune
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,3 @@ | ||
(library | ||
(name plugin) | ||
(public_name global.plugin)) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/coq/compose-installed-plugin.t/to_install/plugin/p.ml
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 @@ | ||
let () = Format.eprintf "Hello@\n%!" |
1 change: 1 addition & 0 deletions
1
.../blackbox-tests/test-cases/coq/compose-installed-plugin.t/to_install/plugin/plugin.mlpack
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 @@ | ||
|
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/coq/compose-installed-plugin.t/to_install/theory/bar.v
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 @@ | ||
Declare ML Module "plugin:global.plugin". |
4 changes: 4 additions & 0 deletions
4
test/blackbox-tests/test-cases/coq/compose-installed-plugin.t/to_install/theory/dune
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,4 @@ | ||
(coq.theory | ||
(name Bar) | ||
(package global) | ||
(plugins global.plugin)) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/coq/compose-installed-plugin.t/user/bar.v
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 @@ | ||
From Bar Require Import bar. |
4 changes: 4 additions & 0 deletions
4
test/blackbox-tests/test-cases/coq/compose-installed-plugin.t/user/dune
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,4 @@ | ||
(coq.theory | ||
(name Foo) | ||
(package local) | ||
(theories Bar)) |
4 changes: 4 additions & 0 deletions
4
test/blackbox-tests/test-cases/coq/compose-installed-plugin.t/user/dune-project
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,4 @@ | ||
(lang dune 3.8) | ||
(using coq 0.8) | ||
|
||
(package (name local)) |
Oops, something went wrong.