version-embed.go 757 B

123456789101112131415161718192021222324
  1. // Copyright (c) Tailscale Inc & AUTHORS
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. // Package tailscaleroot embeds VERSION.txt into the binary.
  4. package tailscaleroot
  5. import _ "embed"
  6. // VersionDotTxt is the contents of VERSION.txt. Despite the tempting filename,
  7. // this does not necessarily contain the accurate version number of the build, which
  8. // depends on the branch type and how it was built. To get version information, use
  9. // the version package instead.
  10. //
  11. //go:embed VERSION.txt
  12. var VersionDotTxt string
  13. //go:embed ALPINE.txt
  14. var AlpineDockerTag string
  15. // GoToolchainRev is the git hash from github.com/tailscale/go that this release
  16. // should be built using. It may end in a newline.
  17. //
  18. //go:embed go.toolchain.rev
  19. var GoToolchainRev string