From df3a511cff235040292ebc2064ef0d57c7836c0e Mon Sep 17 00:00:00 2001 From: Nir Rozenbaum Date: Fri, 8 Mar 2024 22:06:50 +0200 Subject: [PATCH] switch the order to modules and vet in make build commands Signed-off-by: Nir Rozenbaum --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1765834..1d169f4 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ IMAGE ?= ${DOCKER_REGISTRY}/${CMD_NAME}:${IMAGE_TAG} ARCH := $(shell go env GOARCH) .PHONY: build -build: vet fmt modules ## Builds OCM based transport executable. +build: modules vet fmt ## Builds OCM based transport executable. go build -o bin/ocm-transport-plugin ./cmd/${CMD_NAME}/main.go .PHONY: fmt @@ -37,7 +37,7 @@ modules: ## Run go tidy against code. go mod tidy .PHONY: ko-build-local -ko-build-local: vet fmt modules ## Build local container image with `ko`. +ko-build-local: modules vet fmt ## Build local container image with `ko`. $(shell (docker version | { ! grep -qi podman; } ) || echo "DOCKER_HOST=unix://$$HOME/.local/share/containers/podman/machine/qemu/podman.sock ") KO_DOCKER_REPO=ko.local ko build -B ./cmd/${CMD_NAME} -t ${IMAGE_TAG} --platform linux/${ARCH} docker tag ko.local/${CMD_NAME}:${IMAGE_TAG} ${IMAGE}