1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-23 22:04:49 +02:00

Set all version flags at build time so they have correct values (#593)

This commit is contained in:
David Jimenez
2021-10-15 09:35:15 +01:00
committed by GitHub
parent c0f2d40eaa
commit b331445a16
3 changed files with 9 additions and 2 deletions

View File

@@ -214,7 +214,7 @@ func init() {
// Output build info (version, commit, date and builtBy)
if versionFlag {
fmt.Printf(
"Current revive version %v commit %v, built @%v by %v.\n",
"Version:\t%s\nCommit:\t\t%s\nBuilt\t\t%s by %s\n",
version,
commit,
date,