fix version string redundancy
This commit is contained in:
parent
5528bd925c
commit
ed222d181d
6
main.go
6
main.go
@ -125,13 +125,9 @@ func init() {
|
|||||||
cliFlags()
|
cliFlags()
|
||||||
go sigHandler()
|
go sigHandler()
|
||||||
|
|
||||||
// to make versioning via git commits work, build like this:
|
|
||||||
//
|
|
||||||
// export GIT_COMMIT=$(git rev-list -1 HEAD) && go build ./ ld
|
|
||||||
|
|
||||||
if len(GitVersion) > 0 {
|
if len(GitVersion) > 0 {
|
||||||
log.Info().
|
log.Info().
|
||||||
Str("Version", "git-"+GitVersion).
|
Str("Version", GitVersion).
|
||||||
Str("Built", BuildDate).
|
Str("Built", BuildDate).
|
||||||
Msg("Initializing protomolecule")
|
Msg("Initializing protomolecule")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user