Skip to content

Commit

Permalink
switch the order to modules and vet in make build commands
Browse files Browse the repository at this point in the history
Signed-off-by: Nir Rozenbaum <[email protected]>
  • Loading branch information
nirrozenbaum committed Mar 8, 2024
1 parent 392d1d7 commit df3a511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}

Expand Down

0 comments on commit df3a511

Please sign in to comment.