cloudspannerecosystem / wrench

wrench - Schema management tool for Cloud Spanner -
MIT License
238 stars 47 forks source link

Set release version in the release binary #81

Closed kazegusuri closed 1 year ago

kazegusuri commented 1 year ago

WHAT

Add .goreleaser.yml to specify ldflags to set a release version in a binary. For installing a binary by go install, use version info by debug.ReadBuildInfo() if the version is not specified by ldflags.

WHY

When we stop using bazel, version information is not embed in the build binary and release binary.