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

@@ -18,9 +18,8 @@ import (
)
var (
Appname = "pixad" //nolint:gochecknoglobals // set by ldflags
Version string //nolint:gochecknoglobals // set by ldflags
Buildarch string //nolint:gochecknoglobals // set by ldflags
Appname = "pixad" //nolint:gochecknoglobals // set by ldflags
Version string //nolint:gochecknoglobals // set by ldflags
)
var configPath string //nolint:gochecknoglobals // cobra flag
@@ -43,7 +42,6 @@ func main() {
func run(_ *cobra.Command, _ []string) {
globals.Appname = Appname
globals.Version = Version
globals.Buildarch = Buildarch
// Set config path in environment if specified via flag
if configPath != "" {