Skip to content

Commit 05c4852

Browse files
(fix) fis GOBIN to allow run make install in Mac Os
Signed-off-by: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com>
1 parent 57f1513 commit 05c4852

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ clean: ## Cleanup build artifacts and tool binaries.
7171

7272
##@ Build
7373

74+
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
75+
ifeq (,$(shell go env GOBIN))
76+
GOBIN=$(shell go env GOPATH)/bin
77+
else
78+
GOBIN=$(shell go env GOBIN)
79+
endif
80+
7481
.PHONY: install
7582
install: ## Install operator-sdk and helm-operator.
7683
@if [ -z "$(GOBIN)" ]; then \

0 commit comments

Comments
 (0)