zegl / kube-score

Kubernetes object analysis with recommendations for improved reliability and security. kube-score actively prevents downtime and bugs in your Kubernetes YAML and Charts. Static code analysis for Kubernetes.
https://kube-score.com
MIT License
2.75k stars 177 forks source link

Facing an issue in kube-score code #531

Closed ahinvinith closed 1 year ago

ahinvinith commented 1 year ago

After cloning the repo and running the kube-score main.go, getting an error like

command-line-arguments

./main.go:30:14: undefined: execName ./main.go:35:21: undefined: cmdFunc ./main.go:51:4: undefined: cmdVersion ./main.go:60:33: undefined: parse ./main.go:149:43: undefined: execName

Kindly help me to fix this issue

zegl commented 1 year ago

With a modern version of Go, you can compile and run kube-score like so: go run ./cmd/kube-score/