From 312a82367f67c8eeed35340a9cd06ac6026f46bc Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Sat, 14 Dec 2024 23:16:05 +0100 Subject: [PATCH] fix gen.Dockerfile --- hack/gen.Dockerfile | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/hack/gen.Dockerfile b/hack/gen.Dockerfile index 14a7a5e5..b4bdbb66 100644 --- a/hack/gen.Dockerfile +++ b/hack/gen.Dockerfile @@ -1,10 +1,11 @@ # syntax=docker/dockerfile:1 -ARG GO_VERSION="1.20" +ARG GO_VERSION="1.21" ARG PROTOC_VERSION="3.17.3" # protoc is dynamically linked to glibc so can't use alpine base FROM golang:${GO_VERSION}-bullseye AS base +ENV GOFLAGS="-mod=vendor" RUN apt-get update && apt-get --no-install-recommends install -y git unzip ARG PROTOC_VERSION ARG TARGETOS @@ -17,36 +18,34 @@ RUN <&2 'ERROR: Vendor result differs. Please vendor your package with "docker buildx bake gen"' echo "$diff"