Changeset 0.36.0 (#212)

This commit is contained in:
2026-03-20 16:08:12 +00:00
parent 668c608b4f
commit 0ab2800c7e
13 changed files with 11598 additions and 1442 deletions

View File

@@ -1,29 +1,3 @@
package main
import (
"os"
"strings"
)
// Version is set at build time via:
//
// go build -ldflags "-X main.Version=$(cat VERSION)"
//
// Falls back to reading /VERSION or ./VERSION for container/local runs
// without ldflags. Final fallback is "dev".
var Version = "dev"
func init() {
if Version != "dev" {
return
}
// Try well-known paths: container (/VERSION), repo root (../VERSION, ./VERSION)
for _, path := range []string{"/VERSION", "VERSION", "../VERSION"} {
if data, err := os.ReadFile(path); err == nil {
if v := strings.TrimSpace(string(data)); v != "" {
Version = v
return
}
}
}
}
const Version = "0.36.0"