mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
version: fix Short when link-stamped
And remove old SHORT, LONG deprecated variables. Fixes tailscale/corp#1905 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
ecfb2639cc
commit
5bf65c580d
@ -12,13 +12,14 @@
|
|||||||
|
|
||||||
// Short is a short version number for this build, of the form
|
// Short is a short version number for this build, of the form
|
||||||
// "x.y.z", or "date.yyyymmdd" if no actual version was provided.
|
// "x.y.z", or "date.yyyymmdd" if no actual version was provided.
|
||||||
var Short = Long
|
var Short = ""
|
||||||
|
|
||||||
// LONG is a deprecated alias for Long. Don't use it.
|
func init() {
|
||||||
var LONG = Long
|
if Short == "" {
|
||||||
|
// If it hasn't been link-stamped with -X:
|
||||||
// SHORT is a deprecated alias for Short. Don't use it.
|
Short = Long
|
||||||
var SHORT = Short
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// GitCommit, if non-empty, is the git commit of the
|
// GitCommit, if non-empty, is the git commit of the
|
||||||
// github.com/tailscale/tailscale repository at which Tailscale was
|
// github.com/tailscale/tailscale repository at which Tailscale was
|
||||||
|
Loading…
Reference in New Issue
Block a user