diff options
author | dspushkin <dspushkin@yandex-team.com> | 2024-11-11 17:05:32 +0300 |
---|---|---|
committer | dspushkin <dspushkin@yandex-team.com> | 2024-11-11 17:19:59 +0300 |
commit | 4ef14055d842221fd48435542585f7d5c2d6a55f (patch) | |
tree | 347dc568c6e0040cc09c7b679e8205f474f26bef /library | |
parent | 68e277a9f5cbae857aca28140671860be1012d08 (diff) | |
download | ydb-4ef14055d842221fd48435542585f7d5c2d6a55f.tar.gz |
. Пробрасывать версию релизного бранча в ya package
Как вариант, по аналогии с custom-version опцией(custom_version полем в sandbox), пробрасывать опцию release-version(или release-message) в vcs_info.
Тут представлен вариант как прокинуть его в сборку пакета.
commit_hash:f3766b0f0780bd280b1a9d799bea22add4ca3880
Diffstat (limited to 'library')
-rw-r--r-- | library/go/core/buildinfo/buildinfo.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/go/core/buildinfo/buildinfo.go b/library/go/core/buildinfo/buildinfo.go index 88b7d52c9ee..69e1976704e 100644 --- a/library/go/core/buildinfo/buildinfo.go +++ b/library/go/core/buildinfo/buildinfo.go @@ -21,6 +21,7 @@ type BuildInfo struct { // 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 + ReleaseVersion string User string Host string @@ -53,6 +54,7 @@ var Info BuildInfo func InitBuildInfo(buildinfo map[string]string) { Info.ProgramVersion = strings.TrimRight(buildinfo["PROGRAM_VERSION"], " ") Info.CustomVersion = strings.TrimRight(buildinfo["CUSTOM_VERSION"], " ") + Info.ReleaseVersion = strings.TrimRight(buildinfo["RELEASE_VERSION"], " ") Info.User = buildinfo["BUILD_USER"] Info.Host = buildinfo["BUILD_HOST"] Info.Date = buildinfo["BUILD_DATE"] |