zzh@ZZHPC:/zdata/Github/greenlight$ go install honnef.co/go/tools/cmd/staticcheck no required module provides package honnef.co/go/tools/cmd/staticcheck; to add it: go get honnef.co/go/tools/cmd/staticcheck zzh@ZZHPC:/zdata/Github/greenlight$ go install honnef.co/go/tools/cmd/staticcheck@latest zzh@ZZHPC:/zdata/Github/greenlight$ go install github.com/rakyll/hey no required module provides package github.com/rakyll/hey; to add it: go get github.com/rakyll/hey zzh@ZZHPC:/zdata/Github/greenlight$ go install github.com/rakyll/hey@latest zzh@ZZHPC:/zdata/Github/greenlight$
It seems @latest is necessary.
zzh@ZZHPC:/zdata/Github/greenlight$ which hey zzh@ZZHPC:/zdata/Github/greenlight$ which staticcheck /home/zzh/.goenv/shims/staticcheck zzh@ZZHPC:/zdata/Github/greenlight$ cd /home/zzh/.goenv/shims/ zzh@ZZHPC:~/.goenv/shims$ lh hey ls: cannot access 'hey': No such file or directory zzh@ZZHPC:~/.goenv/shims$ lh staticcheck -rwxrwxr-x 1 zzh zzh 394 Aug 28 14:06 staticcheck
hey and staticcheck installed by the 'go install' commands are here:
zzh@ZZHPC:~/.goenv/shims$ go env GOPATH /home/zzh/go/1.23.0 zzh@ZZHPC:~/.goenv/shims$ cd /home/zzh/go/1.23.0/bin zzh@ZZHPC:~/go/1.23.0/bin$ lh hey -rwxrwxr-x 1 zzh zzh 11M Nov 29 18:51 hey zzh@ZZHPC:~/go/1.23.0/bin$ lh staticcheck -rwxrwxr-x 1 zzh zzh 14M Nov 29 18:41 staticcheck
Added GOPATH to PATH.
zzh@ZZHPC:~$ which hey /home/zzh/go/1.23.0/bin/hey zzh@ZZHPC:~$ which staticcheck /home/zzh/.goenv/shims/staticcheck