Move to setting version info explicitly in linker flags
Some checks failed
/ golint (push) Failing after 12s
Some checks failed
/ golint (push) Failing after 12s
We don't have go built-in VCS information in a nix build because the git repository isn't present. After struggling to build an overlay that would provide it, I decided this path is easier of just injecting in the data that we need. Issue: #5
This commit is contained in:
parent
81826f853e
commit
d4cbfb960e
8 changed files with 119 additions and 79 deletions
16
api/version.go
Normal file
16
api/version.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package api
|
||||
|
||||
import (
|
||||
"source.gleipnir.technology/Gleipnir/nidus-sync/version"
|
||||
)
|
||||
|
||||
var (
|
||||
versionInfo version.VersionInfo
|
||||
)
|
||||
|
||||
func GetVersionInfo() version.VersionInfo {
|
||||
return versionInfo
|
||||
}
|
||||
func SetVersionInfo(v version.VersionInfo) {
|
||||
versionInfo = v
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue