Skip to content

Commit d1955fa

Browse files
authored
Upgrade Golang version to 1.25.3 (#241)
* Upgrade Golang version to 1.25.3 * Upgrade Golang version to 1.25.3
1 parent d5ae1f7 commit d1955fa

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up Go
1414
uses: actions/setup-go@v2
1515
with:
16-
go-version: '1.23.12'
16+
go-version: '1.25.3'
1717
- name: Check out code
1818
uses: actions/checkout@v2
1919
with:

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ env:
66
- GO111MODULE=on
77

88
go:
9-
- "1.23.12"
9+
- "1.25.3"
1010

1111
before_install:
1212
- go install github.com/mattn/goveralls@latest

Dockerfile.builder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.23.12
1+
FROM golang:1.25.3
22

33
WORKDIR /go/src/github.com/kubernetes-sigs/ibm-vpc-block-csi-driver
44
ADD . /go/src/github.com/kubernetes-sigs/ibm-vpc-block-csi-driver

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ GIT_COMMIT_SHA="$(shell git rev-parse HEAD 2>/dev/null)"
2020
GIT_REMOTE_URL="$(shell git config --get remote.origin.url 2>/dev/null)"
2121
BUILD_DATE="$(shell date -u +"%Y-%m-%dT%H:%M:%SZ")"
2222
OSS_FILES := go.mod Dockerfile
23-
GOLANG_VERSION="1.23.12"
23+
GOLANG_VERSION="1.25.3"
2424

2525

2626
STAGING_REGISTRY ?= gcr.io/k8s-staging-cloud-provider-ibm
@@ -44,7 +44,7 @@ BUILD_NUMBER?=unknown
4444
GO111MODULE_FLAG?=on
4545
export GO111MODULE=$(GO111MODULE_FLAG)
4646

47-
LINT_VERSION=v2.0.2
47+
LINT_VERSION=v2.4.0
4848

4949
GOFILES=$(shell find . -type f -name '*.go' -not -path "./vendor/*")
5050

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/kubernetes-sigs/ibm-vpc-block-csi-driver
22

3-
go 1.23.12
3+
go 1.25.3
44

55
require (
66
github.com/IBM/ibm-csi-common v1.1.23

hack/verify-golint.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,17 @@
1515
# limitations under the License.
1616

1717
set -euo pipefail
18-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin latest
19-
if [[ -z "$(command -v golangci-lint)" ]]; then
20-
echo "Cannot find golangci-lint. Installing golangci-lint..."
21-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.60.1
22-
export PATH=$PATH:$(go env GOPATH)/bin
18+
19+
LINT_CMD=$(go env GOPATH)/bin/golangci-lint
20+
if [[ -z "$(command -v ${LINT_CMD})" ]]; then
21+
echo "Cannot find ${LINT_CMD}"
22+
exit 1
2323
fi
2424

2525
echo "Verifying golint"
2626
readonly PKG_ROOT="$(git rev-parse --show-toplevel)"
2727

28-
golangci-lint run --timeout=10m
28+
${LINT_CMD} version
29+
${LINT_CMD} run --timeout=10m
2930

30-
echo "Congratulations! Lint check completed for all Go source files."
31+
echo "Congratulations! Lint check completed for all Go source files."

0 commit comments

Comments
 (0)