From ecae7579236ca1408640a265209aa06898782fda Mon Sep 17 00:00:00 2001 From: zhujian Date: Mon, 4 Mar 2024 17:56:51 +0800 Subject: [PATCH] go mod tidy build build binaries Signed-off-by: zhujian --- Dockerfile.rhtap | 1 + Makefile | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile.rhtap b/Dockerfile.rhtap index e16fc871..93e6a567 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 make go-mod-tidy RUN make build-manager RUN make build-agent diff --git a/Makefile b/Makefile index 92c57d8d..e76084f1 100644 --- a/Makefile +++ b/Makefile @@ -71,6 +71,10 @@ build-manager: build-agent: go build -a -o bin/agent cmd/agent/main.go +go-mod-tidy: + go mod tidy + go mod vendor + build-e2e: go test -c -o bin/e2e ./e2e/ @@ -116,7 +120,7 @@ rm -rf $$TMP_DIR ;\ endef images: - docker build -t ${IMG_REGISTRY}/managed-serviceaccount:${IMAGE_TAG} -f Dockerfile . + docker build -t ${IMG_REGISTRY}/managed-serviceaccount:${IMAGE_TAG} -f Dockerfile.rhtap . test-integration: @echo "TODO: Run integration test"