aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/version.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-13 07:29:46 +0900
committerOphestra <cat@gensokyo.uk>2025-11-13 07:29:46 +0900
commitbe0e387ab07c7d9f1441365a05c4c0141779184a (patch)
tree93ec7478d8d0faa320dfc86ad01cf39a364330c8 /internal/version.go
parentabeb67964f52f245f7d529e4dfe01f8347932bfd (diff)
internal/info: relocate from internal
This is cleaner and makes more sense. The longer LDFLAGS was never a valid concern since it is always inserted by a script. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/version.go')
-rw-r--r--internal/version.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/internal/version.go b/internal/version.go
deleted file mode 100644
index 5c671084..00000000
--- a/internal/version.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package internal
-
-// FallbackVersion is returned when a version string was not set by the linker.
-const FallbackVersion = "dirty"
-
-// buildVersion is the Hakurei tree's version string at build time.
-//
-// This is set by the linker.
-var buildVersion string
-
-// Version returns the Hakurei tree's version string.
-// It is either the value of the constant [FallbackVersion] or,
-// when possible, a release tag like "v1.0.0".
-func Version() string {
- if buildVersion != "" {
- return buildVersion
- }
- return FallbackVersion
-}