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

Installation not working ? #44

Open
Theoooooo opened this issue May 23, 2022 · 3 comments
Open

Installation not working ? #44

Theoooooo opened this issue May 23, 2022 · 3 comments

Comments

@Theoooooo
Copy link

Hello

I've been trying to install this binary for over 30 minutes now, i'm moving to something else

go install logs :

go install github.com/jrhouston/tfk8s@latest
go: downloading github.com/jrhouston/tfk8s v0.1.7
go: downloading github.com/spf13/pflag v1.0.3
go: downloading github.com/zclconf/go-cty v1.8.0
go: downloading sigs.k8s.io/yaml v1.1.0
go: downloading gopkg.in/yaml.v2 v2.2.8
go: downloading golang.org/x/text v0.3.5

No tfk8s binary found on my VM

make install logs :

make install
go install -ldflags "-X main.toolVersion=0.1.8"

No tfk8s binary found on my VM

go version :

go version
go version go1.18.2 linux/amd64

Am i missing something ?

@jrhouston
Copy link
Owner

Sorry about your confusion @Theoooooo – you need to have $GOPATH/bin in your $PATH to access the binaries installed via go install. You can add it like this:

export PATH=$PATH:$(go env GOPATH)/bin

@chance2021
Copy link

Hi @jrhouston , I have run the export directive you have mentioned above but still getting the same issue that @Theoooooo has claimed and cannot install the app. Any idea what is the cause? Thanks

$ export PATH=$PATH:$(go env GOPATH)/bin
$ make
go build -ldflags "-X main.toolVersion=0.1.8"

@chance2021
Copy link

Actually I think the trick @jrhouston just mentioned did work for me. Thanks! @jrhouston

export PATH=$PATH:$(go env GOPATH)/bin

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

3 participants