Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make install: Error: GOBIN is not set #6912

Open
tttoad opened this issue Mar 12, 2025 · 0 comments
Open

make install: Error: GOBIN is not set #6912

tttoad opened this issue Mar 12, 2025 · 0 comments

Comments

@tttoad
Copy link

tttoad commented Mar 12, 2025

Bug Report

What did you do?

Execution make install

What did you expect to see?

Compile the executable binary.

What did you see instead? Under which circumstances?

Error: GOBIN is not set
make: *** [install] Error 1

Environment

Operator type:

Kubernetes cluster type:

go version go1.23.4 darwin/arm64

Possible Solution

Remove code:

	@if [ -z "$(GOBIN)" ]; then \
		echo "Error: GOBIN is not set"; \
		exit 1; \
	fi

Check GOBIN is not invalid. This is empty by default.
go installl installs the program in path $GOPATH/bin by default.

#6627 I think the author of this issue did not add $GOPATH/bin to the $PATH, leading him to believe that it was not installed.

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant