<div dir="ltr"><div>> `available: opam-version > "1.2.0"` would do what you say, though: disallow package installation on earlier opams.</div><div><br></div><div>Since `to_pkg` will fail to install with `opam 1.2.0`, there is no problem disallowing it for these versions</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jul 6, 2016 at 12:52 PM Louis Gesbert <<a href="mailto:gesbert@antislash.info">gesbert@antislash.info</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">`opam-version:` describes the file format, and isn't supposed to change between patch versions;<br>
if encoutering a file with a newer minor version, earlier opam will still try to read it, but will silent warnings about the format (and complain that opam itself should be updated).<br>
<br>
`available: opam-version > "1.2.0"` would do what you say, though: disallow package installation on earlier opams.<br>
<br>
> - Fabrice Le Fessant, 06/07/2016 08:43 -<br>
> Why not set `opam-version` in the package to something greater than 1.2 to<br>
> avoid the package from being used there ? Isn't it the goal of that field ?<br>
><br>
> Deprecating a whole version probably still used by some users sounds quite<br>
> overkill just to fix one package.<br>
><br>
> --Fabrice<br>
><br>
><br>
> On Wed, Jul 6, 2016 at 10:29 AM Thomas Gazagnaire <<a href="mailto:thomas@gazagnaire.org" target="_blank">thomas@gazagnaire.org</a>><br>
> wrote:<br>
><br>
> > I think it is time to deprecate opam 1.2.0. What do you think?<br>
> ><br>
> > See <a href="https://github.com/ocaml/opam-repository/pull/6888" rel="noreferrer" target="_blank">https://github.com/ocaml/opam-repository/pull/6888</a> for a recent<br>
> > issue: it doesn’t understand the `pinned` variable. This could be fixed by<br>
> > adding a rewriting layer between 1.2.2 and 1.2.0 and adding a redirection<br>
> > based on the version number (we already do that for opam 1.1) but that’s a<br>
> > lot of efforts for not much gains. So I’m in favour of simply not<br>
> > supporting 1.2.0 anymore.<br>
> ><br>
> > If you are still using 1.2.0 please complain now :-)<br>
> ><br>
> > Thomas<br>
> > _______________________________________________<br>
> > opam-devel mailing list<br>
> > <a href="mailto:opam-devel@lists.ocaml.org" target="_blank">opam-devel@lists.ocaml.org</a><br>
> > <a href="http://lists.ocaml.org/listinfo/opam-devel" rel="noreferrer" target="_blank">http://lists.ocaml.org/listinfo/opam-devel</a><br>
> ><br>
</blockquote></div>