Update
This commit is contained in:
1 parent
3530afb854
commit
6903fcff27
2146 files changed
+112256
-190703
No files matched your search
+9
-2
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// Copyright (c) Tailscale Inc & contributors
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
package version
|
||||
@@ -24,7 +24,14 @@ var stringLazy = sync.OnceValue(func() string {
|
||||
if extraGitCommitStamp != "" {
|
||||
fmt.Fprintf(&ret, " other commit: %s\n", extraGitCommitStamp)
|
||||
}
|
||||
fmt.Fprintf(&ret, " go version: %s\n", runtime.Version())
|
||||
if tsGoRev := tailscaleToolchainRev(); tsGoRev != "" {
|
||||
if len(tsGoRev) > 10 {
|
||||
tsGoRev = tsGoRev[:10]
|
||||
}
|
||||
fmt.Fprintf(&ret, " go version: %s (tailscale/go %s)\n", runtime.Version(), tsGoRev)
|
||||
} else {
|
||||
fmt.Fprintf(&ret, " go version: %s\n", runtime.Version())
|
||||
}
|
||||
return strings.TrimSpace(ret.String())
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user