yannh / kubeconform

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

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

Closed kevin85421 closed 2 months ago

kevin85421 commented 2 months 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 2 months 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!

yannh commented 2 months ago

I'm hoping this worked! :+1: