Skip to content

Commit d96434c

Browse files
authored
Merge pull request #9424 from vmware-tanzu/bump_golang_to_1.25
Bump Golang version from 1.24-bookworm to 1.25-bookworm
2 parents f6b3852 + 64e3643 commit d96434c

26 files changed

Lines changed: 45 additions & 34 deletions

File tree

.github/workflows/pr-linter-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ jobs:
2828
- name: Linter check
2929
uses: golangci/golangci-lint-action@v9
3030
with:
31-
version: v2.1.1
31+
version: v2.5.0
3232
args: --verbose

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# Velero binary build section
16-
FROM --platform=$BUILDPLATFORM golang:1.24-bookworm AS velero-builder
16+
FROM --platform=$BUILDPLATFORM golang:1.25-bookworm AS velero-builder
1717

1818
ARG GOPROXY
1919
ARG BIN
@@ -49,7 +49,7 @@ RUN mkdir -p /output/usr/bin && \
4949
go clean -modcache -cache
5050

5151
# Restic binary build section
52-
FROM --platform=$BUILDPLATFORM golang:1.24-bookworm AS restic-builder
52+
FROM --platform=$BUILDPLATFORM golang:1.25-bookworm AS restic-builder
5353

5454
ARG GOPROXY
5555
ARG BIN

Dockerfile-Windows

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
ARG OS_VERSION=1809
1616

1717
# Velero binary build section
18-
FROM --platform=$BUILDPLATFORM golang:1.24-bookworm AS velero-builder
18+
FROM --platform=$BUILDPLATFORM golang:1.25-bookworm AS velero-builder
1919

2020
ARG GOPROXY
2121
ARG BIN

Tiltfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ git_sha = str(local("git rev-parse HEAD", quiet = True, echo_off = True)).strip(
5252

5353
tilt_helper_dockerfile_header = """
5454
# Tilt image
55-
FROM golang:1.24 as tilt-helper
55+
FROM golang:1.25 as tilt-helper
5656
5757
# Support live reloading with Tilt
5858
RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/restart.sh && \

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/vmware-tanzu/velero
22

3-
go 1.24.0
3+
go 1.25.0
44

55
require (
66
cloud.google.com/go/storage v1.55.0

hack/build-image/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM --platform=$TARGETPLATFORM golang:1.24-bookworm
15+
FROM --platform=$TARGETPLATFORM golang:1.25-bookworm
1616

1717
ARG GOPROXY
1818

@@ -94,7 +94,7 @@ RUN ARCH=$(go env GOARCH) && \
9494
chmod +x /usr/bin/goreleaser
9595

9696
# get golangci-lint
97-
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.1.1
97+
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.5.0
9898

9999
# install kubectl
100100
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/$(go env GOARCH)/kubectl

pkg/cmd/cli/backup/delete_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func TestDeleteCommand(t *testing.T) {
7575
return
7676
}
7777

78-
cmd := exec.Command(os.Args[0], []string{"-test.run=TestDeleteCommand"}...)
78+
cmd := exec.CommandContext(t.Context(), os.Args[0], []string{"-test.run=TestDeleteCommand"}...)
7979
cmd.Env = append(os.Environ(), fmt.Sprintf("%s=1", cmdtest.CaptureFlag))
8080
stdout, _, err := veleroexec.RunCommand(cmd)
8181
if err != nil {

pkg/cmd/cli/backup/describe_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func TestNewDescribeCommand(t *testing.T) {
6363
if os.Getenv(cmdtest.CaptureFlag) == "1" {
6464
return
6565
}
66-
cmd := exec.Command(os.Args[0], []string{"-test.run=TestNewDescribeCommand"}...)
66+
cmd := exec.CommandContext(t.Context(), os.Args[0], []string{"-test.run=TestNewDescribeCommand"}...)
6767
cmd.Env = append(os.Environ(), fmt.Sprintf("%s=1", cmdtest.CaptureFlag))
6868
stdout, _, err := veleroexec.RunCommand(cmd)
6969

pkg/cmd/cli/backup/download_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func TestNewDownloadCommand(t *testing.T) {
9191
assert.NoError(t, e)
9292
return
9393
}
94-
cmd := exec.Command(os.Args[0], []string{"-test.run=TestNewDownloadCommand"}...)
94+
cmd := exec.CommandContext(t.Context(), os.Args[0], []string{"-test.run=TestNewDownloadCommand"}...)
9595
cmd.Env = append(os.Environ(), fmt.Sprintf("%s=1", cmdtest.CaptureFlag))
9696
_, stderr, err := veleroexec.RunCommand(cmd)
9797

pkg/cmd/cli/backup/get_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func TestNewGetCommand(t *testing.T) {
6363
return
6464
}
6565

66-
cmd := exec.Command(os.Args[0], []string{"-test.run=TestNewGetCommand"}...)
66+
cmd := exec.CommandContext(t.Context(), os.Args[0], []string{"-test.run=TestNewGetCommand"}...)
6767
cmd.Env = append(os.Environ(), fmt.Sprintf("%s=1", cmdtest.CaptureFlag))
6868
stdout, _, err := veleroexec.RunCommand(cmd)
6969
require.NoError(t, err)
@@ -84,7 +84,7 @@ func TestNewGetCommand(t *testing.T) {
8484
e = d.Execute()
8585
require.NoError(t, e)
8686

87-
cmd = exec.Command(os.Args[0], []string{"-test.run=TestNewGetCommand"}...)
87+
cmd = exec.CommandContext(t.Context(), os.Args[0], []string{"-test.run=TestNewGetCommand"}...)
8888
cmd.Env = append(os.Environ(), fmt.Sprintf("%s=1", cmdtest.CaptureFlag))
8989
stdout, _, err = veleroexec.RunCommand(cmd)
9090
require.NoError(t, err)

0 commit comments

Comments
 (0)