yannh / kubeconform

A FAST Kubernetes manifests validator, with support for Custom Resources!
Apache License 2.0
2.18k stars 121 forks source link

The version is `development` if you install `kubeconform` by running the `go install` command. #290

Open kevin85421 opened 3 days ago

kevin85421 commented 3 days ago

Reproduce

  go install github.com/yannh/kubeconform/cmd/kubeconform@v0.6.7
  kubeconform -v # "development"

If I download the binary from the release page (https://github.com/yannh/kubeconform/releases/tag/v0.6.7), the version is v0.6.7.

yannh commented 3 days ago

That would be working as expected. Builds on a specific tag in our CI pass -X main.version={{.Tag}} to set the version correctly - if you check out and build at a specific tag you should be able to pass this as well. I hope this works for you!