chore(housekeeping): canonical git.d-ma.be host + honest version string
- Dockerfile: GOPRIVATE and the http→https insteadOf rewrite now name git.d-ma.be (was the pre-rename gitea.d-ma.be; masked at build time only by GOPROXY=direct + GOSUMDB=off). - .context/PROJECT.md Repo URL → git.d-ma.be, adapters regenerated (CLAUDE.md, AGENTS.md, .cursorrules, .aider.conventions.md, system-prompt.txt). - main.go: version is now a `-ldflags -X main.version` overridable var defaulting to "dev" instead of a hardcoded, drifting "0.1.0". Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,11 @@ import (
|
||||
"git.d-ma.be/mathias/gitea-mcp/internal/tools"
|
||||
)
|
||||
|
||||
// version is the build version, overridable via -ldflags "-X main.version=<tag>".
|
||||
// Defaults to "dev" for local / un-stamped builds (was a hardcoded, drifting
|
||||
// "0.1.0" — it now tells the truth instead of a stale literal).
|
||||
var version = "dev"
|
||||
|
||||
func main() {
|
||||
logger := slog.New(slog.NewJSONHandler(os.Stdout, nil))
|
||||
// Route the chassis's package-level slog (auth audit logs, gitea-mcp#9) through
|
||||
@@ -69,7 +74,7 @@ func main() {
|
||||
}
|
||||
|
||||
addr := ":" + cfg.Port
|
||||
logger.Info("gitea-mcp starting", "addr", addr, "version", "0.1.0")
|
||||
logger.Info("gitea-mcp starting", "addr", addr, "version", version)
|
||||
if err := http.ListenAndServe(addr, mux); err != nil {
|
||||
logger.Error("server stopped", "err", err)
|
||||
os.Exit(1)
|
||||
|
||||
Reference in New Issue
Block a user