You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reflecting on the issue in #13774, I think a solution that is both
forwards and backwards compatible is to just always use `rocq c
--config`. This PR implements this change and allows compilation of
`rocq.theory` stanzas for Rocq 9.0+.
Documentation in the [Rocq
CLI](https://rocq-prover.org/doc/master/refman/practical-tools/coq-commands.html#command-line-options)
implies this will be recognized by `compile/c` and [the message for this
commit](rocq-prover/rocq@da931cc)
seems to imply that `--config` will need to access the environment
regardless.
Maybe there is some reason to utilize just `rocq --config` (note:
missing the `c`), but it is not immediately obvious to me.
<details>
<summary>It working with PR dune vs. failing previous version</summary>
```bash
$ rocq --version
The Rocq Prover, version 9.0.1
compiled with OCaml 5.3.0
$ cat theories/dune
(rocq.theory
(name test_proj)
(package test_proj)
(theories Stdlib))
$ cat dune-project
(lang dune 3.22)
(using rocq 0.12)
(generate_opam_files)
(package
(name test_proj)
(depends rocq-core))
$ cat theories/Test.v
From Stdlib Require Import Nat.
Lemma test : forall (x : nat), x = x.
Proof. reflexivity. Qed.
$ ~/forks/dune/_boot/dune.exe build
$ ~/forks/dune/_boot/dune.exe clean
$ dune build
Warning: Skipping installed theories due to 'rocq --config' failure:
- .../.opam/package_dev/bin/rocq --config failed with exit code 1.
Hint: Try running 'rocq --config' manually to see the error.
Couldn't find Rocq standard library, and theory is not using (stdlib no)
-> required by _build/default/theories/.test_proj.theory.d
-> required by alias theories/all
-> required by alias default
File "theories/dune", line 4, characters 11-17:
4 | (theories Stdlib))
^^^^^^
Theory "Stdlib" has not been found.
-> required by theory test_proj in theories/dune:2
-> required by _build/default/theories/.test_proj.theory.d
-> required by alias theories/all
-> required by alias default
```
</details>
0 commit comments