Closed t-oki closed 2 years ago
That's a file we manually have to maintain?
Can't we use buildinfo for that? https://pkg.go.dev/debug/buildinfo
Though keep in mind that I don't want to drop pre-1.18 support yet.
@rubenv Thanks, I used runtime/debug that have support for older go versions. And I thought it would be better to show version 'dev' when runtime/debug failed to get the version than showing the wrong version
Cool, thanks!
The version of the CLI tool is always 1.0.0 even if you install as
go install github.com/rubenv/sql-migrate/...@v1.1.1
and it's quite confusing. This PR will sync the version of the CLI tool with the git tag.