Closed Adjective-Object closed 2 weeks ago
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.
Hello,
the problem seems related to curl and a fix has been merged https://github.com/curl/curl/commit/eacec9a35047bc71e83bba12403b990327bc8f8f (https://github.com/curl/curl/pull/13857)
Welcome
typecheck
section of the FAQ.Description of the problem
Installation of golangci-lint is failing in one of my project's windows CI.
This reproduces for all requested installed versions, including
latest
.I did some digging in by downloading the install script and adding some debug statements; it looks like the problem comes down to the use of
curl -w
inhttp_download_curl
:The same
curl
command works without-w
, and000
isn't a valid response code. I did some poking around:And it's failing with
A libcurl function was given a bad argument
This looks to be rooted in this issue in libcurl, as I'm also on curl 8.8.0, and I'm assuming github is as well from the other issues citing the linked issue.
https://github.com/curl/curl/issues/13845
Unfortunately 8.8.0 is the latest release of curl so there's not an easy workaround, and I expect you will be getting similar issues soon.
I've worked around this in our CI with this snippet:
The
http_download_curl
function in the install script should probably be updated to work around this bug by only checking the exit code when curl's version is 8.8.0.Version of golangci-lint
N/A
Configuration
N/A
Go environment
Verbose output of running
N/A
A minimal reproducible example or link to a public repository
Validation
Supporter