From c603340de258adc7815e2063434cd424dd9041f1 Mon Sep 17 00:00:00 2001 From: Copilot <223556219+Copilot@users.noreply.github.com> Date: Tue, 25 Aug 2026 07:17:14 +0000 Subject: [PATCH] Bump hardcoded panel version fallback to 1.4.1 cmd/panel/main.go's `version` variable is a fallback used whenever the binary is built without the Makefile's -ldflags "-X main.version=..." injection (e.g. `go run ./cmd/panel` or `go build` invoked directly). It was still hardcoded to the previous release, 1.4.0, while the repo's VERSION file (and the value Make injects at build time) is 1.4.1. This caused GET /api/version and the panel's own startup log to report the wrong build version whenever the binary was built without the Makefile. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- cmd/panel/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/panel/main.go b/cmd/panel/main.go index 7ef8a19..888df48 100644 --- a/cmd/panel/main.go +++ b/cmd/panel/main.go @@ -38,7 +38,7 @@ import ( // version is the panel build version. It defaults to the contents of the VERSION // file and is overridden at build time via -ldflags "-X main.version=...". -var version = "1.4.0" +var version = "1.4.1" func main() { logBuf := logbuf.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{Level: slog.LevelInfo}), 2000)