When building binaries, compile the whole package.
Currently we have a single file so the effect is the same.
But it might save us some frustration if we ever add more, and this way
shows the intent better.
@@ -70,12 +70,12 @@ manager-clean:
run:
# for local development, webhooks are disabled by default
# if you enable them, you have to take care of providing the TLS certs locally
- ENABLE_WEBHOOKS=${ENABLE_WEBHOOKS} go run -ldflags "${LDFLAGS}" ./cmd/manager/main.go
+ ENABLE_WEBHOOKS=${ENABLE_WEBHOOKS} go run -ldflags "${LDFLAGS}" ./cmd/manager
.PHONY: deploy
# Install KUDO into a cluster via kubectl kudo init
deploy:
- go run -ldflags "${LDFLAGS}" cmd/kubectl-kudo/main.go init
+ go run -ldflags "${LDFLAGS}" ./cmd/kubectl-kudo init
.PHONY: deploy-clean
deploy-clean:
@@ -93,7 +93,7 @@ generate-clean:
.PHONY: cli-fast
# Build CLI but don't lint or run code generation first.
cli-fast:
- go build -ldflags "${LDFLAGS}" -o bin/${CLI} cmd/kubectl-kudo/main.go
+ go build -ldflags "${LDFLAGS}" -o bin/${CLI} ./cmd/kubectl-kudo
.PHONY: cli
# Build CLI
