-
Description of the problemIm trying to install golangci-lint on local linux env and i was following the documentation from the offical website
and i got this:
any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 4 replies
-
Hello, I copy paste your command and I don't reproduce your problem: $ docker run --rm -it golang:1.20-alpine sh
/go # apk add -q git curl
/go # curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -d -b $(go env GOPATH)/bin v1.53.3
golangci/golangci-lint info checking GitHub for tag 'v1.53.3'
golangci/golangci-lint debug http_download https://github.com/golangci/golangci-lint/releases/v1.53.3
golangci/golangci-lint info found version: 1.53.3 for v1.53.3/linux/amd64
golangci/golangci-lint debug downloading files into /tmp/tmp.GFpGoN
golangci/golangci-lint debug http_download https://github.com/golangci/golangci-lint/releases/download/v1.53.3/golangci-lint-1.53.3-linux-amd64.tar.gz
golangci/golangci-lint debug http_download https://github.com/golangci/golangci-lint/releases/download/v1.53.3/golangci-lint-1.53.3-checksums.txt
golangci/golangci-lint info installed /go/bin/golangci-lint
/go # This is probability because you have a problem accessing GitHub API. Duplicate of: |
Beta Was this translation helpful? Give feedback.
-
what does this means, how to have the access? |
Beta Was this translation helpful? Give feedback.
-
can you do that: curl -H "Accept:application/json" https://github.com/golangci/golangci-lint/releases/v1.53.3 the expected response is: $ curl -H "Accept:application/json" https://github.com/golangci/golangci-lint/releases/v1.53.3
{"id":108711254,"tag_name":"v1.53.3","update_url":"/golangci/golangci-lint/releases/tag/v1.53.3","update_authenticity_token":"ftw4NcpPj49yhtFoOJyQn6uBaefYWMQ3AGo07ckMEf5CCP0paZ6yOIiIZymHdRhOkczvypuIVRU3TayXvfHL9w","delete_url":"/golangci/golangci-lint/releases/tag/v1.53.3","delete_authenticity_token":"lGgI1ge-HYpROVeeRlfoZWT1pVw9mIXhmRoMpHYmUhQJj9s_AiQE3wVJoBd51acx_ZkCyY9RHXsBFPVRxg129A","edit_url":"/golangci/golangci-lint/releases/edit/v1.53.3"} |
Beta Was this translation helpful? Give feedback.
-
i got this
|
Beta Was this translation helpful? Give feedback.
-
linux ubuntu |
Beta Was this translation helpful? Give feedback.
-
i dont think so, because im struggling with these 4 last hours |
Beta Was this translation helpful? Give feedback.
-
returns this v1.53.3 but i found way this to work, it seems i have installed this already jsut instead running golangci-lint run i use $HOME/go/bin/golangci-lint run and now it will work |
Beta Was this translation helpful? Give feedback.
-
I just found that but its weird that download gives message I sent you, however thanks a lot for support! |
Beta Was this translation helpful? Give feedback.
You have misled me: your problem is not the download but the run.
$GOPATH/bin
should be added to yourPATH
.This is not related to golangci-lint but to your Go installation.