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.
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.