summaryrefslogtreecommitdiffhomepage
path: root/version-embed.go
diff options
context:
space:
mode:
authorDavid Anderson <danderson@tailscale.com>2023-02-06 23:23:00 -0800
committerDave Anderson <dave@natulte.net>2023-02-10 13:00:44 -0800
commitda75e49223910080d2aaa0a0b0716d4b79a5045a (patch)
treefff7501dca574e7d72a7fe7928d1e6b8a9b8cbb3 /version-embed.go
parent78980a4ccff5fc10a036544dfea20d206d152451 (diff)
downloadtailscale-da75e49223910080d2aaa0a0b0716d4b79a5045a.tar.xz
tailscale-da75e49223910080d2aaa0a0b0716d4b79a5045a.zip
version: return correct Meta.MajorMinorPatch in non-dev builds
Signed-off-by: David Anderson <danderson@tailscale.com>
Diffstat (limited to 'version-embed.go')
-rw-r--r--version-embed.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/version-embed.go b/version-embed.go
index b65759310..40c2e7cef 100644
--- a/version-embed.go
+++ b/version-embed.go
@@ -6,8 +6,13 @@ package tailscaleroot
import _ "embed"
+// VersionDotTxt is the contents of VERSION.txt. Despite the tempting filename,
+// this does not necessarily contain the accurate version number of the build, which
+// depends on the branch type and how it was built. To get version information, use
+// the version package instead.
+//
//go:embed VERSION.txt
-var Version string
+var VersionDotTxt string
//go:embed ALPINE.txt
var AlpineDockerTag string