Remove globals.Buildarch from codebase #31

Scalone
sneak scala 1 commity/ów z fix/issue-30-remove-buildarch do main 2026-03-04 12:07:58 +01:00
Collaborator

Remove the Buildarch field from the globals package and all references throughout the codebase.

Changes:

  • Removed Buildarch package-level var and struct field from internal/globals/globals.go
  • Removed Buildarch from the New() constructor
  • Removed globals.Buildarch = runtime.GOARCH and unused runtime import from cmd/webhooker/main.go
  • Removed buildarch from logger startup output in internal/logger/logger.go
  • Removed all Buildarch test setup and assertions from globals, logger, database, and webhook_db_manager tests

All tests pass, make check passes, docker build . succeeds.

closes issue #30

Remove the `Buildarch` field from the globals package and all references throughout the codebase. **Changes:** - Removed `Buildarch` package-level var and struct field from `internal/globals/globals.go` - Removed `Buildarch` from the `New()` constructor - Removed `globals.Buildarch = runtime.GOARCH` and unused `runtime` import from `cmd/webhooker/main.go` - Removed `buildarch` from logger startup output in `internal/logger/logger.go` - Removed all `Buildarch` test setup and assertions from globals, logger, database, and webhook_db_manager tests All tests pass, `make check` passes, `docker build .` succeeds. closes [issue #30](https://git.eeqj.de/sneak/webhooker/issues/30) <!-- session: agent:sdlc-manager:subagent:5cae6803-6bdf-467d-9a56-43f135521e5f -->
clawbot dodał(-a) 1 commit 2026-03-04 01:28:04 +01:00
remove globals.Buildarch from codebase
Wszystkie etapy powiodły się
check / check (push) Successful in 6s
fd2c2d62dd
Remove the Buildarch field from the globals package variable, struct,
and constructor. Remove all references in main.go (including the
runtime import), logger startup output, and test setup across globals,
logger, database, and webhook_db_manager packages.

closes #30
Author
Collaborator

Review: PASS

Clean removal of Buildarch from the codebase. Verified:

  • Complete removal: grep -r "Buildarch\|buildarch\|BUILDARCH" --include="*.go" returns nothing
  • No orphaned imports: runtime import correctly removed from cmd/webhooker/main.go
  • No Makefile/Dockerfile ldflags references to Buildarch
  • No README references to Buildarch
  • Tests pass: docker build . succeeds (which runs make check — formatting, linting, tests)
  • Single clean commit: remove globals.Buildarch from codebase

All 7 files correctly updated. No logic changes, just dead code removal as intended.

Labeling merge-ready and assigning to @sneak for final merge.

## ✅ Review: PASS Clean removal of `Buildarch` from the codebase. Verified: - **Complete removal**: `grep -r "Buildarch\|buildarch\|BUILDARCH" --include="*.go"` returns nothing - **No orphaned imports**: `runtime` import correctly removed from `cmd/webhooker/main.go` - **No Makefile/Dockerfile ldflags references** to Buildarch - **No README references** to Buildarch - **Tests pass**: `docker build .` succeeds (which runs `make check` — formatting, linting, tests) - **Single clean commit**: `remove globals.Buildarch from codebase` All 7 files correctly updated. No logic changes, just dead code removal as intended. Labeling `merge-ready` and assigning to @sneak for final merge. <!-- session: agent:sdlc-manager:subagent:f882a6a4-a46a-4cef-b70c-98f56610cb8b -->
clawbot dodano merge-ready etykietę 2026-03-04 01:30:46 +01:00
sneak zostaje przypisany(-a) przez clawbot 2026-03-04 01:30:53 +01:00
sneak merged commit a51e863017 into main 2026-03-04 12:07:58 +01:00
sneak usuwa gałąź fix/issue-30-remove-buildarch 2026-03-04 12:07:58 +01:00
Zaloguj się, aby dołączyć do tej rozmowy.
No Reviewers
Uczestnicy 1
Powiadomienia
Termin realizacji
Brak ustawionego terminu realizacji.
Zależności

No dependencies set.

Reference: sneak/webhooker#31