Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Only run Cygwin setup once during opam init #5833

Open
dra27 opened this issue Feb 12, 2024 · 0 comments
Open

Only run Cygwin setup once during opam init #5833

dra27 opened this issue Feb 12, 2024 · 0 comments

Comments

@dra27
Copy link
Member

dra27 commented Feb 12, 2024

In opam 2.2.x, the only way to get an MSVC compiler at opam init is to manually specify the compiler or to have an MSVC compiler in PATH so that ocaml-system enables it. Otherwise, a mingw-w64 GCC package will be required via depext in order to install the mingw-w64 port of OCaml.

At present, with the internal Cygwin installation enabled, Cygwin setup is invoked at the start of opam init on Windows to perform the initial installation and is then invoked again at depext resolution.

It would be good to coalesce these into a single call to setup, given that it makes the OOBE (out-of-box-experience) even slower. It's not at present trivial though, because the Cygwin installation may itself be required to get the initial repository (but some of the work in progress with ocaml-tar, etc. may mean this becomes unnecessary, or at least not the default, in future).

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

No branches or pull requests

2 participants