coq / opam

Archive for all Coq related OPAM packages organized in various repositories

Home Page:https://coq.inria.fr/opam/www/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could we make coq-ltac2 a dummy package in 8.11 instead of requiring Coq < 8.11?

cpitclaudel opened this issue · comments

Description of the problem

I'm trying to support 8.9 through 8.11 in the same project. I use Ltac2, so I have a dependency on the coq-ltac2 package. But currently that package requires Coq < 8.11.

Could the coq-ltac2 be marked as compatible with 8.11 and made to install a dummy package there? Or is there a simpler solution that I overlooked?

cc @ppedrot

According to https://opam.ocaml.org/doc/Manual.html, the correct syntax is probably "coq-ltac2" | "coq" { >= "8.11~" } (the ~ allows capturing also the beta versions, I believe)

Thanks, I should have looked there. I only looked at https://dune.readthedocs.io/en/stable/dune-files.html#package, and AFAICT dune doesn't support that. Am I missing something?

Indeed, it looks like this feature might be missing from dune. @ejgallego?

I don't recall the status of that, at least on master you should be able to do:

(package
 (name cohttp)
 (synopsis "An OCaml library for HTTP clients and servers")
 (description "A longer description")
 (depends
  (alcotest :with-test)
  (dune (> 1.5))
  (foo (or :dev (> 1.5) (< 2.0)))
  (uri (>= 1.9.0))
  (uri (< 2.0.0))
  (fieldslib (> v0.12))
  (fieldslib (< v0.13))))

This is an OR between versions, but we need an OR between packages.

This is an OR between versions, but we need an OR between packages.

If that's not yet implemented I'd suggest you file a feature request and hopefully will solved soon. I can check what's the status of this but not today sorry.

Thanks a lot for the report @cpitclaudel , regarding the opam issue, I suggest to re-submit at https://github.com/coq/opam-coq-archive/issues as it is an issue of the repos.

Isn't it the whole issue? It is easy to transfer issues between repos of the same organization @ejgallego.

It is easy to transfer issues between repos of the same organization @ejgallego.

Oh sorry I was not aware of that, thanks for taking care of the transfer.