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

@@ -1,8 +1,7 @@
.PHONY: check lint test fmt build clean
VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo "dev")
BUILDARCH := $(shell go env GOARCH)
LDFLAGS := -X main.Version=$(VERSION) -X main.Buildarch=$(BUILDARCH)
LDFLAGS := -X main.Version=$(VERSION)
# Default target: run all checks
check: fmt-check lint test