Skip to content

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

Closed
@PichuChen

Description

@PichuChen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: installIssue relates to installation or downloading processenhancementNew feature or improvementplatform: macosIssue that is related to MacOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions