Skip to content
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

Install golangci-lint on Apple Silicon (darwin-arm64) #1725

Closed
3 tasks done
PichuChen opened this issue Feb 9, 2021 · 3 comments · Fixed by #1740
Closed
3 tasks done

Install golangci-lint on Apple Silicon (darwin-arm64) #1725

PichuChen opened this issue Feb 9, 2021 · 3 comments · Fixed by #1740
Labels
area: install Issue relates to installation or downloading process enhancement New feature or improvement platform: macos Issue that is related to MacOS

Comments

@PichuChen
Copy link

The release didn't build golangci-lint-1.36.0-darwin-arm64.tar.gz, so it will return HTTP 404 when download golangci-lint on Apple M1

Thank you for creating the issue!

  • Yes, I'm using a binary release within 2 latest major releases. Only such installations are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, etc).

Please include the following information:

v1.36.0
% curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin -d v1.36.0

golangci/golangci-lint info checking GitHub for tag 'v1.36.0'
golangci/golangci-lint debug http_download https://github.com/golangci/golangci-lint/releases/v1.36.0
golangci/golangci-lint info found version: 1.36.0 for v1.36.0/darwin/arm64
golangci/golangci-lint debug downloading files into /var/folders/v3/qzc5zjs93jxfyt_0z9r82g2m0000gp/T/tmp.S0oiIwga
golangci/golangci-lint debug http_download https://github.com/golangci/golangci-lint/releases/download/v1.36.0/golangci-lint-1.36.0-darwin-arm64.tar.gz
golangci/golangci-lint debug http_download_curl received HTTP status 404
Config file N/A
Go environment
% go version && go env
go version go1.16rc1 darwin/arm64
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/pichu/Library/Caches/go-build"
GOENV="/Users/pichu/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/pichu/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/pichu/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/opt/homebrew/Cellar/go/1.15.7_1/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/homebrew/Cellar/go/1.15.7_1/libexec/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.16rc1"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/pichu/gitlocalrepos/poa/Ptt-backend/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/v3/qzc5zjs93jxfyt_0z9r82g2m0000gp/T/go-build2816074119=/tmp/go-build -gno-record-gcc-switches -fno-common"
Verbose output of running N/A
@PichuChen PichuChen added the bug Something isn't working label Feb 9, 2021
@boring-cyborg
Copy link

boring-cyborg bot commented Feb 9, 2021

Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.

@ldez
Copy link
Member

ldez commented Feb 9, 2021

Hello, darwin/arm64 will be supported in the next Go version go1.16

https://tip.golang.org/doc/go1.16#ports

go1.16 is currently not released.

@ldez ldez added enhancement New feature or improvement and removed bug Something isn't working labels Feb 9, 2021
@ldez ldez changed the title Install golangci-lint on Apple Silicon (darwin-arm64) by sh failed Install golangci-lint on Apple Silicon (darwin-arm64) Feb 9, 2021
@ldez ldez added the platform: macos Issue that is related to MacOS label Feb 13, 2021
@AndreiD
Copy link

AndreiD commented Feb 16, 2021

👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: install Issue relates to installation or downloading process enhancement New feature or improvement platform: macos Issue that is related to MacOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants