Install script unable to find
on windows + latest curl (v8.8.0)
#4813
Labels
area: install
Issue relates to installation or downloading process
bug
Something isn't working
dependencies
Relates to an upstream dependency
platform: windows
Issue that is related to Windows
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.
curl/curl#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
The text was updated successfully, but these errors were encountered: