Skip to content

Commit

Permalink
Bump lint go version to 1.22.8 (#1850)
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvasquez authored Oct 7, 2024
1 parent 18d1547 commit 27c2b66
Showing 1 changed file with 7 additions and 4 deletions.
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

0 comments on commit 27c2b66

Please sign in to comment.