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

Installed this tool but it does not work? #6

Open
jsonwan opened this issue Aug 3, 2023 · 3 comments
Open

Installed this tool but it does not work? #6

jsonwan opened this issue Aug 3, 2023 · 3 comments

Comments

@jsonwan
Copy link

jsonwan commented Aug 3, 2023

image

@sbrienne
Copy link

sbrienne commented Aug 8, 2023

Same error.

@jsonwan You can do sudo GOBIN=/usr/local/bin/ go install github.com/ueokande/kubectl-evict@latest

@oschvr
Copy link

oschvr commented Jan 15, 2024

This is what worked for me (Mac M1 arm64)

sudo GOBIN=/usr/local/bin/ GOOS=darwin GOARCH=arm64 go install github.com/ueokande/kubectl-evict@latest

@agurgel-te
Copy link

Is the default $GOBIN in your shell's $PATH?

~ ❯ go help install | head -8
usage: go install [build flags] [packages]

Install compiles and installs the packages named by the import paths.

Executables are installed in the directory named by the GOBIN environment
variable, which defaults to $GOPATH/bin or $HOME/go/bin if the GOPATH
environment variable is not set. Executables in $GOROOT
are installed in $GOROOT/bin or $GOTOOLDIR instead of $GOBIN.

Here's my shell:

~ ❯ env | grep GO
GOPATH=/home/agurgel/.go
~ ❯ tr : '\n' <<< $PATH | grep $GOPATH
/home/agurgel/.go/bin
~ ❯ go install github.com/ueokande/kubectl-evict@latest
go: downloading github.com/ueokande/kubectl-evict v0.0.0-20221001150942-7c959261d0ba
<...>
~ ❯ kubectl evict --help | head -4
Evict a pod or specified resource from the cluster

Usage:
  evict (POD | TYPE/NAME) [flags]

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

4 participants