buildinfo

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitBuildInfo

func InitBuildInfo(buildinfo map[string]string)

InitBuildInfo is internal, but exported API.

This function is called from the main package by the code generated in build/scripts/vcs_info.py

Types

type BuildInfo

type BuildInfo struct {
	// ProgramVersion is multiline string completely describing
	// version of current binary.
	//
	//     Svn info:
	//         URL: svn+ssh://arcadia.yandex.ru/arc/trunk/arcadia
	//         Last Changed Rev: 4479764
	//         Last Changed Author: robot-yappy
	//         Last Changed Date: 2019-02-19 16:33:55 +0300 (Tue, 19 Feb 2019)
	//
	//     Other info:
	//         Build by: prime
	//         Top src dir: /home/prime/Code/go/src/a.yandex-team.ru
	//         Top build dir: /home/prime/.ya/build/build_root/qbh0/000002
	//         Hostname: 77.88.18.146-red.dhcp.yndx.net
	//         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
	Date string

	// VCS is one of "svn", "arc", "hg", "git" or ""
	VCS string

	SVNRevision              string
	ArcadiaSourceRevision    string
	ArcadiaSourceLastChanged string
	ArcadiaPatchNumber       string
	ArcadiaSourcePath        string
	BuildTimestamp           string
	Hash                     string
	Tag                      string
	Dirty                    string
	Branch                   string
}
var Info BuildInfo

Info holds information about current build.

Info might not available in distributed build and when building from IDE. Users of api must gracefully handle such cases.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL