gojp / goreportcard

A report card for your Go application
https://goreportcard.com
Apache License 2.0
2.01k stars 249 forks source link

cli doesn't work #379

Open wongni opened 2 years ago

wongni commented 2 years ago

I tried to build cli on MacOS and Ubuntu, but both didn't work because goreportcard-cli is not found.

❯ git clone https://github.com/gojp/goreportcard.git
cd goreportcard
make install
go install ./cmd/goreportcard-cli
goreportcard-cli

Cloning into 'goreportcard'...
remote: Enumerating objects: 6136, done.
remote: Counting objects: 100% (2648/2648), done.
remote: Compressing objects: 100% (1313/1313), done.
remote: Total 6136 (delta 1391), reused 2389 (delta 1205), pack-reused 3488
Receiving objects: 100% (6136/6136), 10.07 MiB | 1.05 MiB/s, done.
Resolving deltas: 100% (3233/3233), done.
./scripts/make-install.sh
zsh: command not found: goreportcard-cli
ubuntu@wonkun-ubuntu:~$ git clone https://github.com/gojp/goreportcard.git
Cloning into 'goreportcard'...

remote: Enumerating objects: 6136, done.
remote: Counting objects: 100% (2648/2648), done.
remote: Compressing objects: 100% (1313/1313), done.
remote: Total 6136 (delta 1391), reused 2389 (delta 1205), pack-reused 3488
Receiving objects: 100% (6136/6136), 10.07 MiB | 22.82 MiB/s, done.
Resolving deltas: 100% (3233/3233), done.
ubuntu@wonkun-ubuntu:~$ cd goreportcard
ubuntu@wonkun-ubuntu:~/goreportcard$ make install
./scripts/make-install.sh
ubuntu@wonkun-ubuntu:~/goreportcard$ go install ./cmd/goreportcard-cli
ubuntu@wonkun-ubuntu:~/goreportcard$ goreportcard-cli
goreportcard-cli: command not found
shawnps commented 2 years ago

@wongni can you provide the output of go list -f '{{.Target}}'?