-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OPAM: try out coq as a compiler #595
Comments
What would be really awesome then would be to support Coq as a system compiler, e.g. when installed through the distribution's package manager. I don't know if that's a supported use case. |
Nice idea. I was planning to wait the opam2.0 transition and then study the possibilities... I don't know if |
(The point being that the Coq packages specify a dependency on Coq but it should be supported to satisfy this dependency with a system-wide install of Coq, like it is possible to do with the OCaml compiler.) |
Umm, as far as I know the concept of compiler is less special in OPAM2 than in OPAM1, already, if the packages properly depend on Coq in runtime fashion [which they must] they will get rebuilt], so I am not sure what this would change. My impression also is that system compilers are discouraged, as they tend to create many problems due to opam not being notified of upgrades in the package-manager side. So even if I am not sure they are deprecated yet, they are certainly to be avoided. |
So it seems we can just flag the coq package as being a compiler, then opam switch would list it as such and one can the initialize the switch by choosing a coq version (rather than an ocaml one) |
Yup so indeed what this does is to pin the package , however setting the flag would mean that coq is not upgraded, so it'd be great for some users , not so for others, I dunno. |
And we should be able to use
That is, unavailable package are not even listed, rather than listed but uninstallable |
Right. IIRC there is a way to say "build a new switch X on compiler C and put in all packages I've in switch Y (on compiler D)". So I think "upgrading" is still possible, but will not erase the old switch. This seems a feature to me. |
Here it is:
|
When #587 is fixed, we can then experiment with what opam2 promises, that is to handle coq as a compiler.
This should make it possible to "root" an entire switch around a coq version, and automatically reomcpile things when coq is updated.
The text was updated successfully, but these errors were encountered: