Skip to content
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

Remove ocaml-system from the list of default compilers used during opam init #6307

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kit-ty-kate
Copy link
Member

Fixes #3509

I don't think having ocaml-system in the list of default compiler is a good choice.
Most platforms actually won't work if you installed the ocaml package alone. They usually all require some sort of extra ocaml-compiler-libs to be complete and not end up in very confusing error messages for new users.

System compilers are also not tested in the CI for opam-repository as of today (see ocurrent/opam-repo-ci#327) and end up breaking packages from time to time.

Experienced developers can always use opam init -c ocaml-system if they really want a system compiler and ocaml-system can always be installed explicitly later if needed, but as a default for everyone it seems to brittle to me.

@rjbou
Copy link
Collaborator

rjbou commented Nov 25, 2024

Discussion on dev meeting: For a transition phase, we should detect presence of a system ocaml and display a hint for the command to run to have by default ocaml-system.
This change also affects default switch creation, not only init.

@@ -116,36 +116,23 @@ Configuring from ${BASEDIR}/opamrc and then from built-in defaults.
<><> Fetching repository information ><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised

<><> Creating initial switch 'default' (invariant ["ocaml" {>= "4.05.0"}] - initially with ocaml-system)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test needs to be fixed with the new behaviour (add -c ocaml-system), and another one added for the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

do not use system switch by default
2 participants