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

Bump lint go version to 1.22.8 #1850

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions etc/golangci-lint.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
#!/usr/bin/env bash
set -ex

GO_VERSION=1.22.8
GOLANGCI_LINT_VERSION=1.60.1

# Unset the cross-compiler overrides while downloading binaries.
GOOS_ORIG=${GOOS:-}
export GOOS=
GOARCH_ORIG=${GOARCH:-}
export GOARCH=

# Keep this in sync with go version used in static-analysis Evergreen build variant.
go install golang.org/dl/go1.22.7@latest
go1.22.7 download
PATH="$(go1.22.7 env GOROOT)/bin:$PATH"
go install golang.org/dl/go$GO_VERSION@latest
go$GO_VERSION download
PATH="$(go$GO_VERSION env GOROOT)/bin:$PATH"
export PATH
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.1
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v$GOLANGCI_LINT_VERSION

export GOOS=$GOOS_ORIG
export GOARCH=$GOARCH_ORIG
Expand Down
Loading