mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-20 01:47:33 +00:00
version: use Go 1.18's git stamping as default implementation
No more manual version bumps! Fixes #81 Change-Id: I3a9e544a7248f0b83bcbacbaabbc4dabc435e62d Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
c2c97f8f38
commit
1f22507c06
@@ -15,7 +15,11 @@ func String() string {
|
||||
ret.WriteString(Short)
|
||||
ret.WriteByte('\n')
|
||||
if GitCommit != "" {
|
||||
fmt.Fprintf(&ret, " tailscale commit: %s\n", GitCommit)
|
||||
var dirty string
|
||||
if GitDirty {
|
||||
dirty = "-dirty"
|
||||
}
|
||||
fmt.Fprintf(&ret, " tailscale commit: %s%s\n", GitCommit, dirty)
|
||||
}
|
||||
if ExtraGitCommit != "" {
|
||||
fmt.Fprintf(&ret, " other commit: %s\n", ExtraGitCommit)
|
||||
|
Reference in New Issue
Block a user