build: move version to a single place

Instead of trying to copy Akvorado version around, move it to a single
place, which can be imported by everything else.
This commit is contained in:
Vincent Bernat
2024-06-02 14:04:54 +02:00
parent a8da1eeebf
commit 3af8b942d2
8 changed files with 19 additions and 22 deletions

View File

@@ -7,6 +7,7 @@ import (
"fmt"
"akvorado/common/daemon"
"akvorado/common/helpers"
"akvorado/common/reporter"
)
@@ -33,7 +34,7 @@ func StartStopComponents(r *reporter.Reporter, daemonComponent daemon.Component,
}
r.Info().
Str("version", Version).
Str("version", helpers.AkvoradoVersion).
Msg("akvorado has started")
<-daemonComponent.Terminated()