-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Golangci-lint downloader fails to download binary #3509
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
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
Same problem here, since this morning. The script mentioned in the install page is broken. It seems that it's fetching from a URL which is not returning what it used to |
The script performs a check against github to obtain a tag... something like:
This now returns a webpage instead of JSON like it was before? |
Maybe they turned off that access path in favor of using the API? ➜ ~ curl --silent -H 'Accept: application/json' https://api.github.com/repos/golangci/golangci-lint/releases/tags/v1.35.2 | head
{
"url": "https://api.github.com/repos/golangci/golangci-lint/releases/36207082",
"assets_url": "https://api.github.com/repos/golangci/golangci-lint/releases/36207082/assets",
"upload_url": "https://uploads.github.com/repos/golangci/golangci-lint/releases/36207082/assets{?name,label}",
"html_url": "https://github.com/golangci/golangci-lint/releases/tag/v1.35.2",
"id": 36207082,
"author": {
"login": "golangci-releaser",
"id": 65486276,
"node_id": "MDQ6VXNlcjY1NDg2Mjc2", |
This works for me: 321c321
< giturl="https://github.com/${owner_repo}/releases/${version}"
---
> giturl="https://api.github.com/repos/${owner_repo}/releases/tags/${version}"
324c324
< version=$(echo "$json" | tr -s '\n' ' ' | sed 's/.*"tag_name":"//' | sed 's/".*//')
---
> version=$(echo "$json" | tr -s '\n' ' ' | sed 's/.*"tag_name": "//' | sed 's/".*//') |
Hopefully this can get merged fairly quickly. The devcontainers install for Go (https://github.com/devcontainers/features/tree/main/src/go) is currently broken as it has been dependant on the golangci install since Oct |
And added support for handling without a specified version #3510. |
Seems to be a GitHub bug related to an API change: https://github.com/orgs/community/discussions/45590 |
I'm getting rate limits so our pipelines are still failing on the api calls |
I have no solution for your rate limits problem, it's a GitHub constraint.
|
Updates golangci-lint install to incorporate the fix for golangci/golangci-lint#3509, which was affecting CI tests, for example: https://github.com/mmcloughlin/avo/actions/runs/4030013813
Updates golangci-lint install to incorporate the fix for golangci/golangci-lint#3509.
@cyprianbergoniatmo as GitHub engineers reverted their change, and due to the rate limit problem I will revert the previous fix. |
Welcome
Description of the problem
The downloader decscribed in the installation guide https://golangci-lint.run/usage/install/#other-ci returns with an error. It does not install the golangci-lint binary into my go path.
Perhaps the Github API changed?
Version of golangci-lint
N/A
Configuration file
N/A
Go environment
N/A
Verbose output of running
Code example or link to a public repository
N/A
The text was updated successfully, but these errors were encountered: