From 28e895358fbe24df84d551823df163fc0ab6aeec Mon Sep 17 00:00:00 2001 From: zhujian Date: Mon, 4 Mar 2024 17:56:51 +0800 Subject: [PATCH] go mod tidy before build binaries Signed-off-by: zhujian --- Dockerfile.rhtap | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile.rhtap b/Dockerfile.rhtap index e16fc87..44cb03d 100644 --- a/Dockerfile.rhtap +++ b/Dockerfile.rhtap @@ -2,6 +2,7 @@ FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_1.20 AS bui WORKDIR /go/src/github.com/open-cluster-management.io/managed-serviceaccount COPY . . RUN go env +RUN go mod tidy && go mod vendor RUN make build-manager RUN make build-agent