Skip to content

Commit df5624f

Browse files
committed
update golangci-lint installation
1 parent fc2d33c commit df5624f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

etc/golangci-lint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -ex
33

44
# Keep this in sync with go version used in static-analysis Evergreen build variant.
55
GO_VERSION=1.22.8
6-
GOLANGCI_LINT_VERSION=1.60.1
6+
GOLANGCI_LINT_VERSION=1.59.1
77

88
# Unset the cross-compiler overrides while downloading binaries.
99
GOOS_ORIG=${GOOS:-}
@@ -17,7 +17,7 @@ GOROOT="$(go${GO_VERSION} env GOROOT)"
1717
PATH="$GOROOT/bin:$PATH"
1818
export PATH
1919
export GOROOT
20-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v${GOLANGCI_LINT_VERSION}
20+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v${GOLANGCI_LINT_VERSION}
2121

2222
export GOOS=$GOOS_ORIG
2323
export GOARCH=$GOARCH_ORIG

0 commit comments

Comments
 (0)