rekor icon indicating copy to clipboard operation
rekor copied to clipboard

rekor-cli installation through go

Open Mohamed-AH opened this issue 3 years ago • 3 comments

Description

I tried to install rekor-cli through go on an ubuntu server on killercoda.com using "go install -v github.com/sigstore/rekor/cmd/rekor-cli@latest" but it was not successful, however I was able to do it successfully manually using "git clone https://github.com/sigstore/rekor.git rekor-cli cd rekor-cli make rekor-cli cp rekor-cli /usr/local/bin/"

Version

Not Applicable

Mohamed-AH avatar Sep 29 '22 12:09 Mohamed-AH

Hi!

What was your reproducing steps and error messages? I can run the go install successfully:

$ go install -v github.com/sigstore/rekor/cmd/rekor-cli@latest

asraa avatar Oct 03 '22 17:10 asraa

I opened an environment on killercoda.com (https://killercoda.com/playgrounds/scenario/ubuntu) pasted the command $ go install -v github.com/sigstore/rekor/cmd/rekor-cli@latest after the execution, rekor-cli returns "command not found"

but if I do the installation manually with the below commands : "git clone https://github.com/sigstore/rekor.git rekor-cli cd rekor-cli make rekor-cli cp rekor-cli /usr/local/bin/" rekor installs correctly and rekor-cli works fine.

am i missing some thing.

Mohamed-AH avatar Oct 04 '22 14:10 Mohamed-AH

I opened an environment on killercoda.com (https://killercoda.com/playgrounds/scenario/ubuntu) pasted the command $ go install -v github.com/sigstore/rekor/cmd/rekor-cli@latest after the execution, rekor-cli returns "command not found"

but if I do the installation manually with the below commands : "git clone https://github.com/sigstore/rekor.git rekor-cli cd rekor-cli make rekor-cli cp rekor-cli /usr/local/bin/" rekor installs correctly and rekor-cli works fine.

am i missing some thing.

Typically it means $GOBIN is not in $PATH

bobcallaway avatar Oct 06 '22 10:10 bobcallaway

@Mohamed-AH please reopen if this is not a result of $GOBIN not being in your $PATH.

bobcallaway avatar Oct 22 '22 15:10 bobcallaway