From f22fde0bcc242b3fae7288cdc47e52058a1a7c22 Mon Sep 17 00:00:00 2001 From: Lyndon-Li Date: Fri, 6 Nov 2026 13:06:01 +0800 Subject: [PATCH] pin patch version for golang and base image Signed-off-by: Lyndon-Li --- Dockerfile | 4 ++-- Dockerfile-Windows | 2 +- Tiltfile | 2 +- go.mod | 2 ++ hack/build-image/Dockerfile | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index b6687717e..5b21aebfa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ # limitations under the License. # Velero binary build section -FROM --platform=$BUILDPLATFORM golang:1.27-trixie AS velero-builder +FROM --platform=$BUILDPLATFORM golang:1.27.3-trixie AS velero-builder ARG GOPROXY ARG BIN @@ -49,7 +49,7 @@ RUN mkdir -p /output/usr/bin && \ go clean -modcache -cache # Velero image packing section -FROM paketobuildpacks/ubuntu-noble-run-tiny:latest +FROM paketobuildpacks/ubuntu-noble-run-tiny:0.0.156 LABEL maintainer="Xun Jiang " diff --git a/Dockerfile-Windows b/Dockerfile-Windows index dab3f6066..609374a6b 100644 --- a/Dockerfile-Windows +++ b/Dockerfile-Windows @@ -15,7 +15,7 @@ ARG OS_VERSION=1809 # Velero binary build section -FROM --platform=$BUILDPLATFORM golang:1.27-trixie AS velero-builder +FROM --platform=$BUILDPLATFORM golang:1.27.3-trixie AS velero-builder ARG GOPROXY ARG BIN diff --git a/Tiltfile b/Tiltfile index 3567f6347..6c7f216d4 100644 --- a/Tiltfile +++ b/Tiltfile @@ -87,7 +87,7 @@ print("Tilt: cluster_goarch={} (local {})".format(cluster_goarch, local_goarch)) tilt_helper_dockerfile_header = """ # Tilt image -FROM golang:1.27-trixie as tilt-helper +FROM golang:1.27.3-trixie as tilt-helper # Support live reloading with Tilt RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/restart.sh && \ diff --git a/go.mod b/go.mod index 797bf325b..04d1e864a 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,8 @@ module github.com/velero-io/velero go 1.27.0 +toolchain go1.27.3 + require ( cloud.google.com/go/storage v1.62.3 github.com/Azure/azure-sdk-for-go/sdk/azcore v1.22.0 diff --git a/hack/build-image/Dockerfile b/hack/build-image/Dockerfile index 8ede67e7a..47c9d6053 100644 --- a/hack/build-image/Dockerfile +++ b/hack/build-image/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM --platform=$TARGETPLATFORM golang:1.27-trixie +FROM --platform=$TARGETPLATFORM golang:1.27.3-trixie ARG GOPROXY ARG PROTOC_GEN_GO_VERSION