aboutsummaryrefslogtreecommitdiffstats
path: root/library/go/core/buildinfo/buildinfo.go
diff options
context:
space:
mode:
authorprettyboy <prettyboy@yandex-team.com>2023-03-27 08:38:19 +0300
committerprettyboy <prettyboy@yandex-team.com>2023-03-27 08:38:19 +0300
commitcd17556f6887bcd2ff85b0071f82f27ef193b619 (patch)
treee80a54180ad3cb295a812cd26953514dd22d220d /library/go/core/buildinfo/buildinfo.go
parent8f9b3c6be615e45788ac1917ad5dec0c66ae66b1 (diff)
downloadydb-cd17556f6887bcd2ff85b0071f82f27ef193b619.tar.gz
[devtools/ya/package] Populate custom-version to vcs info
Diffstat (limited to 'library/go/core/buildinfo/buildinfo.go')
-rw-r--r--library/go/core/buildinfo/buildinfo.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/go/core/buildinfo/buildinfo.go b/library/go/core/buildinfo/buildinfo.go
index cad0805d4f..88b7d52c9e 100644
--- a/library/go/core/buildinfo/buildinfo.go
+++ b/library/go/core/buildinfo/buildinfo.go
@@ -20,6 +20,7 @@ type BuildInfo struct {
// Host information:
// Linux 77.88.18.146-red.dhcp.yndx.net 4.19.10-300.fc29.x86_64 #1 SMP Mon Dec 17 15:34:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
ProgramVersion string
+ CustomVersion string
User string
Host string
@@ -51,6 +52,7 @@ var Info BuildInfo
// This function is called from the main package by the code generated in build/scripts/vcs_info.py
func InitBuildInfo(buildinfo map[string]string) {
Info.ProgramVersion = strings.TrimRight(buildinfo["PROGRAM_VERSION"], " ")
+ Info.CustomVersion = strings.TrimRight(buildinfo["CUSTOM_VERSION"], " ")
Info.User = buildinfo["BUILD_USER"]
Info.Host = buildinfo["BUILD_HOST"]
Info.Date = buildinfo["BUILD_DATE"]