chore: take the version from VERSION.txt only (0.0.3)

VERSION.txt is embedded into the server and the agent, so a plain
go build reports the real version and build.sh no longer injects it.
This commit is contained in:
redtea committed 2026-10-13 14:50:49 +03:00
1 parent 93673d3570
commit 7cb9da8569
5 files changed
+26 -11

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
// Package lpra holds what the server and the agent share at build time.
package lpra
import (
_ "embed"
"strings"
)
//go:embed VERSION.txt
var versionFile string
// Version is the release version of every binary in this module. VERSION.txt
// is the only place it is defined.
var Version = strings.TrimSpace(versionFile)