-
Notifications
You must be signed in to change notification settings - Fork 372
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
Avoid unreleased versions of OCaml unless specified #3510
Comments
It is planned to move most That would in this case solve the issue. Note that, however, there is no way to manually put different weight on different packages, and opam only optimises the overall freshness of the versions of packages it installs using its search criteria. So if let's say We haven't yet found a general solution to this problem, but in the case of creating new switches (which doesn't cover uses of |
I just learned about this issue today (thanks to @rjbou) and I think it is a serious problem. We don't want to have opam2 users install unreleased versions of the compiler without noticing. The suggestion to move experimental compiler versions to a separate repository seems fine, has someone worked on it yet, is there a related PR or place to ping? |
As far as I know, nobody has started to work on that. Any help to do that would be highly appreciated! |
@gasche moving these to a new remote would be good. You may also want to look at the |
My time to work on this is very limited. What about a by-need approach? I propose to send a PR to remove all unreleased OCaml packages from opam-repository, and then wait and see who needs these in opam and kindly ask them to create (and maintain!) a new remote. |
(Limited before October. But I think this should be solved sooner than that, because it sounds like a usability disaster.) |
That sounds good. I have also not done the mechanical port for similar reasons :) |
Actually, we do build 4.08 snapshots in the Dockerfiles, so this will break that CI. Cutting and pasting those into another remote would let me continue to build them... |
@avsm, did you just volunteer? :-) |
yeah ok, i'll take a look shortly |
I just noticed that https://github.com/ocaml/ocaml-pr-repository (where we moved the opam1 PRs to) script has stopped updating, so it seems like that feature isn't particularly popular among our users. As far as I can tell to fix this PR we could:
Does this sound right ? |
This sounds good to me, but I find it a bit odd that the 1.2 and 2.0 branches of opam-repository don't have the same compilers/switches available (I think we would have a simpler story if they exposed exactly the same installable things). I would be slightly in favor of also removing 4.08+trunk from the 1.2 branch, and advise trunk users to (migrate to opam2 and) add opam-pr-repository. But those who do the work decide. |
P.S.: Thanks! |
temporary solution for ocaml/opam#3510 these bleeding edge compilers will move into a new remote so they are still accessible to advanced users, but this PR just removes them for now as it is opam 2.0.0 release day :) Signed-off-by: Anil Madhavapeddy <[email protected]>
Part of the temporary solution for ocaml/opam#3510 these bleeding edge compilers will move into a new remote so they are still accessible to advanced users, but this PR just removes them for now as it is opam 2.0.0 release day :) Signed-off-by: Marcello Seri <[email protected]>
I've switched the CI to using a refreshed https://github.com/ocaml/ocaml-pr-repository that is generated automatically. Docs and releases to follow, but this unblocks the 4.08 trunk builds for now. |
This is quite a high priority bug to fix in a point release: it also affects RC versions of OCaml, which makes them difficult to stage in the mainline repository. |
As described in ocaml/opam-repository#13302 (comment), @avsm set up a new repo https://github.com/ocaml/ocaml-beta-repository. to host beta ocaml compilers packages. |
With opam 2, it is probably not desirable for the solver to choose the latest (and likely unreleased) version of ocaml unless specifically asked to:
It is unlikely that I want
4.08.0+trunk+fp+flambda
when just asking forocaml
. :-)The text was updated successfully, but these errors were encountered: