Skip to content

Commit

Permalink
Check GOBIN on make install (#6629)
Browse files Browse the repository at this point in the history
Signed-off-by: Brett Tofel <btofel@redhat>
Signed-off-by: Brett Tofel <btofel@redhat.com>
  • Loading branch information
bentito authored Nov 17, 2023
1 parent e842208 commit 0114601
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ clean: ## Cleanup build artifacts and tool binaries.

.PHONY: install
install: ## Install operator-sdk and helm-operator.
@if [ -z "$(GOBIN)" ]; then \
echo "Error: GOBIN is not set"; \
exit 1; \
fi
$(GO) install $(GO_BUILD_ARGS) ./cmd/{operator-sdk,helm-operator}

.PHONY: build
Expand Down

0 comments on commit 0114601

Please sign in to comment.