tarides / ocaml-platform-installer

The best way for developers to write software in OCaml
ISC License
61 stars 8 forks source link

Support compilers pinned or from ocaml-variants #105

Closed panglesd closed 2 years ago

panglesd commented 2 years ago

The versions given to the packages needed to be more precise:

I still need to add tests but this time the approach seems better to me.

panglesd commented 2 years ago

This should fix #97

panglesd commented 2 years ago

Here is what we could do:

I think this solution would end up with a reasonable amount of binaries in the cache (even though I think the local cache size would never be a problem for users... cache "hit" would be more of a problem.). Also, I think it is OK for people using pinned or custom compiler package to wait a little bit to build the platform tools in those switches, they still get the "dependency-free" platform tools.

The opam commands to know the which are the compilers package installed and whether they are pinned can be:

$ opam list --has-flag=compiler --installed --short                  
ocaml-variants
$

and

$ opam list --has-flag=compiler --installed --short --pinned         
$
panglesd commented 2 years ago

I hope to have converged to a good design wrt custom compilers in #106. Closing this in favor of #106.