version: return correct Meta.MajorMinorPatch in non-dev builds
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:

committed by
Dave Anderson

parent
78980a4ccf
commit
da75e49223
@ -6,7 +6,6 @@ package version
|
||||
import (
|
||||
"strings"
|
||||
|
||||
tailscaleroot "tailscale.com"
|
||||
"tailscale.com/tailcfg"
|
||||
)
|
||||
|
||||
@ -95,7 +94,7 @@ type Meta struct {
|
||||
// GetMeta returns version metadata about the current build.
|
||||
func GetMeta() Meta {
|
||||
return Meta{
|
||||
MajorMinorPatch: strings.TrimSpace(tailscaleroot.Version),
|
||||
MajorMinorPatch: majorMinorPatch,
|
||||
Short: Short,
|
||||
Long: Long,
|
||||
GitCommit: GitCommit,
|
||||
|
Reference in New Issue
Block a user