Skip to content

Opam fails to download cygwin shasum #6474

@ajbt200128

Description

@ajbt200128

We've been getting dozens of these errors on our windows builds:

OPAMSOLVERTIMEOUT=1500 LWT_DISCOVER_ARGUMENTS="--use-libev true" LIBRARY_PATH="/lib:" opam install --confirm-level=unsafe-yes -y --depext-only ./ ./dev/required.opam 
[WARNING] Failed checks on required package definition from source at file://D:/a/semgrep-proprietary/semgrep-proprietary/OSS/dev:
  warning 68: Missing field 'license'
[WARNING] Opam packages conf-mingw-w64-curl-x86_64.1, conf-mingw-w64-gmp-x86_64.1, conf-mingw-w64-pcre-x86_64.1 and conf-mingw-w64-pcre2-x86_64.1 depend on the following system packages that are no longer installed: mingw64-x86_64-curl mingw64-x86_64-gmp mingw64-x86_64-pcre mingw64-x86_64-pcre2

The following system packages will first need to be installed:
    mingw64-x86_64-curl mingw64-x86_64-gmp mingw64-x86_64-pcre mingw64-x86_64-pcre2

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>

Fatal error:
OpamDownload.Download_fail(_, "curl failed: \"D:\\\\cygwin\\\\bin\\\\curl.exe --write-out %{http_code}\\\\n --retry 3 --retry-delay 2 --user-agent opam/2.3.0 -L -o C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\Temp\\\\opam-2896-f71c65\\\\sha512.sum.part -- [https://cygwin.com/sha512.sum\](https://cygwin.com/sha512.sum/)" exited with code 16")
make[1]: *** [Makefile:281: install-opam-deps] Error 99
make[1]: Leaving directory '/cygdrive/d/a/semgrep-proprietary/semgrep-proprietary/OSS'
make: *** [Makefile:255: install-deps-for-semgrep-core] Error 2
make: Leaving directory '/cygdrive/d/a/semgrep-proprietary/semgrep-proprietary/OSS'

It seems like it may be an upstream issue with cygwin (or maybe libcurl?), but it would be awesome if opam retried this step a few times at the least.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions