mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-12 11:14:40 +00:00
54e6c3a290
When building with redo, also include the git commit hash from the proprietary repo, so that we have a precise commit that identifies all build info (including Go toolchain version). Add a top-level build script demonstrating to downstream distros how to burn the right information into builds. Adjust `tailscale version` to print commit hashes when available. Fixes #841. Signed-off-by: David Anderson <danderson@tailscale.com>
18 lines
493 B
Go
18 lines
493 B
Go
// Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build !redo,xversion
|
|
|
|
package version
|
|
|
|
// Replaced at build time with the Go linker flag -X. See
|
|
// ../build_dist.sh for example usage, and version.go for field
|
|
// documentation.
|
|
var Long string = "<not set>"
|
|
var Short string = "<not set>"
|
|
var LONG = Long
|
|
var SHORT = Short
|
|
var GitCommit = ""
|
|
var ExtraGitCommit = ""
|