GODT-1977: add pre-release flag to app version on qa builds

This commit is contained in:
Jakub
2022-11-08 17:07:30 +01:00
committed by James Houlahan
parent c08d0eff7a
commit 5aa495b240
4 changed files with 95 additions and 5 deletions

View File

@ -63,11 +63,6 @@ const (
Host = "127.0.0.1"
)
// AppVersion returns the full rendered version of the app (to be used in request headers).
func AppVersion(version string) string {
return fmt.Sprintf("%v-%v@%v", getAPIOS(), AppName, version)
}
// nolint:goconst
func getAPIOS() string {
switch runtime.GOOS {