-
Notifications
You must be signed in to change notification settings - Fork 364
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
Broken use of curl in 2.2.0~alpha3 on native Windows #5681
Comments
Blocks verification of #5673 |
Root causeThe
But
I guess that is unsurprising since for DkML I have to use The |
So ... can we do one of the following (or some or all):
|
I use curl on Windows and the master branch and I haven't seen this issue. Is the MSYS2 version of curl known to be more buggy compared to Cygwin? Actually re-reading myself as I'm writing makes me think mixing MSYS2 and Cygwin is the problem. |
I definitely can't use the Cygwin version ... there is no Cygwin in DkML, and Cygwin would cause fatal conflicts with MSYS2 anyway. Hence my use of But you just made me realize that if there was a Edit: Also added "Assets" to issue description so can repeat what I did. |
For init, it is Windows curl that is used. Once cygwin configured, it is set at the beginning of the path, yes. Some comments and answers on what you proposed.
It is possible to do that with 2 ways:
It is not possible for the moment to have a repository without its content. There is some work on that, see #4617.
I tried to update curl quoting for some windows run, i ended up having something that worked. I'm not thrilled by the solution, but we could add a conditioned curl invocation: if cywgin || unix, current quoting, otherwise windows quoting.
Yes, we discussed that, but i don't remember the conclusion (we didn't took notes:)). We began with that, and end up on a maybe wrapper as with-dkml fits is better ? If in you path, you have msys2 binary path available, opam should take that curl. |
I am quite fine with And it gets past the However, |
Resolved with |
Assets
opam.exe
: https://github.com/diskuv/dkml-component-opam/releases/tag/2.2.0-alpha3-20230918 has a tarball that contains MSVC-compiled Windows 64-bitopam.exe
(and other operating systems but those are easy to build).with-dkml.exe
: Sadly there is not an easy way to get this except to install DkML 2.0.3 from https://gitlab.com/dkml/distributions/dkml/-/releases/2.0.3. But for this issue all that it should be doing is placing MSYS2 into the PATH.Problem
Context:
curl
has always been broken as a download method on native Windows. So afteropam init
I always do aopam option --yes --global download-command=wget
in DkML.With
opam.2.2.0~alpha0
(commits until 2022-12-28) I could do the following without a problem:Now with
opam.2.2.0~alpha3
(commits until 2023-09-18) I have to use--no-cygwin-setup
(which is fine) but I get an error:The text was updated successfully, but these errors were encountered: