[opam-devel] opam getting compiler version wrong
meta at antislash.info
Thu Dec 8 17:07:27 GMT 2016
Indeed, there is one. It is all documented at:
The last note explains why you didn't see many 'ocaml' packages. Also, `opam-
admin` has a new option `--mirror` since then, to upgrade a repo without
overwriting the 1.2 version
Note that, as a hack, you could set the variable by hand (opam config set
ocaml-version VERSION) ; but you are likely to run into other issues.
On mercredi 7 décembre 2016 14:52:21 CET Ashish Agarwal wrote:
> Seems the issue is mis-interpretation of a deprecated constraint. I'm using
> Jane Street's opam repository , which contains constraints like:
> available: [ ocaml-version >= "4.03.0" ]
> After replacing this with a normal constraint in the `depends` field, it
> worked fine. Is there a tool to convert old opam files?
>  https://github.com/janestreet/opam-repository
> On Wed, Dec 7, 2016 at 8:04 AM, Ashish Agarwal <agarwal1975 at gmail.com>
> > I'm getting this:
> > $ opam install ppx_sexp_conv.114.10+84
> > [ERROR] ppx_sexp_conv.114.10+84 has unmet availability conditions:
> > ocaml-version >= "4.03.0"
> > So opam thinks my ocaml version is < 4.03.0, but I'm in a 4.03.0 switch.
> > I've certainly run "eval `opam config env`". I created a new switch with
> > 4.03.0 to try it from scratch, but get the same issue.
> > Sanity checks:
> > $ ocaml -version
> > The OCaml toplevel, version 4.03.0
> > $ opam info ocaml | grep all-installed-versions
> > all-installed-versions 4.03.0 [4.03.0] 4.04.0 [4.04.0]
> > Incidentally, I'm confused about the output of `opam info ocaml`. I have 6
> > switches on this computer. How come only 2 are listed above?
> > $ opam --version
> > 2.0~alpha5
More information about the opam-devel