Remove Buildarch from ldflags, use runtime.GOARCH instead

The architecture is available at runtime via stdlib, no need to bake
it in at build time.
This commit is contained in:
2026-01-08 12:38:24 -08:00
parent 15d9439e3d
commit 7d0ac0a139
4 changed files with 13 additions and 20 deletions

View File

@@ -4,6 +4,7 @@ package logger
import (
"log/slog"
"os"
"runtime"
"go.uber.org/fx"
"sneak.berlin/go/pixa/internal/globals"
@@ -72,6 +73,6 @@ func (l *Logger) Identify() {
l.log.Info("starting",
"appname", l.globals.Appname,
"version", l.globals.Version,
"buildarch", l.globals.Buildarch,
"arch", runtime.GOARCH,
)
}