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
coqPackages.dpdgraph: remove support for coq 8.7 #30698
Conversation
Thanks. Evaluation errors are indeed much better that build failures. However, there should be a clean mechanism to properly declare what packages are available for which versions of Coq. Here is a rough suggestion. Each Coq package comes with a Then the result of Any thoughts? |
Indeed, I think this is a much better approach. I'll give it a try. Meanwhile, I think this patch should be merged. Is that ok with you, @jwiegley ? I'll open a similar PR on |
Can you rename the subject of the issue and the commit message to: "coqPackages.dpdgraph: remove support for coq 8.7"? Otherwise, if upstream doesn't support 8.7, I don't see any reason to not commit this. |
I only added dpdgraph so that it would evaluate, thinking we could subsequently fix the build error. There are packages in all the other Coq versions that evaluate but don't build as well. |
Meanwhile, this PR can either be merged to avoid a build failure, or be closed to wait for a more general clean up of |
coqPackages_8_7.dpdgraph won't build since Coq 8.7.0 is not yet supported upstream.
e43609e
to
6f97fce
Compare
I think we should merge to make parts of 8.7 available, and then consider how we will do it right. |
It's been some time since I've wanted to document There's something specific to Coq packages which isn't there for most languages AFAIK which is that we have lots of plugins which are very dependent on the version of Coq, and most of them do not try to provide a Makefile which would switch implementations based on which version of Coq is used but instead they provide several releases / branches. Library authors, on the contrary are encouraged to support several releases at once and generally do so. If I understand @vbgl's suggestion correctly, the goal is to use this function when building the |
I would rather filter the set of available packages during the fixpoint computation (i.e. in the definition of Concerning your example, Théo, you can use a single lookup in an attribute-set instead of a long chain of if-then-else with equality checks. You can use the |
We could also think about generating the packages from the Coq Package Index, rather than having an ad-hoc collection, btw: https://coq.inria.fr/packages |
@vbgl Thanks for the comments.
Indeed, and this is something that is done for some other languages (e.g. Haskell from Stack I think, or Emacs from MELPA) and we can even adapt the way the meta data is stored if it helps. Shouldn't we open a new issue to track this? |
coqPackages_8_7.dpdgraph won't build since Coq 8.7.0 is not yet supported
upstream.
Motivation for this change
coq-dpdgraph was not released for Coq 8.7.0, so I don't understand why this was pushed. @jwiegley can you confirm that this never built? Or did I miss something in my setup?
By the way, a new release of coq-dpdgraph should happen soon.