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

opam 2.3.0 on Windows 11 #6300

Closed
andreibucsan opened this issue Nov 15, 2024 · 2 comments
Closed

opam 2.3.0 on Windows 11 #6300

andreibucsan opened this issue Nov 15, 2024 · 2 comments

Comments

@andreibucsan
Copy link

andreibucsan commented Nov 15, 2024

If your issue concerns a package not building, please report to
https://github.com/ocaml/opam-repository/issues or to the package maintainer
unless you are confident it is an issue in the opam tool itself.
If your issue concerns failures with the opam.ocaml.org website, please report to
https://github.com/ocaml/infrastructure/issues

<include here the output of `opam config report`, if applicable>

Opam 2.3.0

Unfortunately, this release doesn't work on Windows 11. It doesn't fix the issues in the previous releases.
OS:
Edition Windows 11 Pro
Version 23H2
OS build 22631.4460
Experience Windows Feature Experience Pack 1000.22700.1047.0

Opam seems to have an issue with curl:

OpamDownload.Download_fail(_, "curl failed: \"C:\\\\Windows\\\\system32\\\\curl.exe --write-out %{http_code}\\\\n --retry 3 --retry-delay 2 --user-agent opam/2.3.0 -L -o C:\\\\Users\\\\Andrei\\\\AppData\\\\Local\\\\Temp\\\\opam-1508-2c7e93\\\\sha512.sum.part -- https://cygwin.com/sha512.sum\" exited with code 35")

Error log: in "~\AppData\Local\Temp\" folder:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - The revocation function was unable to check revocation for the certificate.

Interestingly enough, it works without any problems on Windows 10. But downgrading the OS is not an option.
I also tried manually installing Cygwin and Msys2, it doesn't work. It ends in curl returning an error.
Also tried with the official binary of curl, instead of the Windows curl. Same result.

Please try to fix this issue, thank you.

@andreibucsan andreibucsan changed the title opam on Windows 11 opam 2.3.0 on Windows 11 Nov 15, 2024
@acasta-yhliu
Copy link
Contributor

It seems the problem is from Cygwin, not opam? Since:

I also tried manually installing Cygwin and Msys2, it doesn't work. It ends in curl returning an error.

If you could check again, it would be really helpful!

@andreibucsan
Copy link
Author

I close this issue as it seems I opened it by mistake. The only problem was Norton antivirus which blocked curl connections. I solve it by adding exclusions for https://cygwin.com/ and https://opam.ocaml.org. As a side note, after la last major update, Norton became extremely aggressive. At least so I perceive it. Thanks.

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

No branches or pull requests

3 participants