Skip to content

Commit 6675494

Browse files
Bump lint go version to 1.22.8
1 parent 18d1547 commit 6675494

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

etc/golangci-lint.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
#!/usr/bin/env bash
22
set -ex
33

4+
GO_VERSION=1.22.8
5+
GOLANGCI_LINT_VERSION=1.60.1
6+
47
# Unset the cross-compiler overrides while downloading binaries.
58
GOOS_ORIG=${GOOS:-}
69
export GOOS=
710
GOARCH_ORIG=${GOARCH:-}
811
export GOARCH=
912

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

1720
export GOOS=$GOOS_ORIG
1821
export GOARCH=$GOARCH_ORIG

0 commit comments

Comments
 (0)