Skip to content

Commit acb75da

Browse files
committed
Check GOBIN on make install
Signed-off-by: Brett Tofel <btofel@redhat> Signed-off-by: Brett Tofel <[email protected]>
1 parent e842208 commit acb75da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ clean: ## Cleanup build artifacts and tool binaries.
7373

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

7882
.PHONY: build

0 commit comments

Comments
 (0)