Remove globals.Buildarch from codebase #31

Merged
sneak merged 1 commits from fix/issue-30-remove-buildarch into 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 added 1 commit 2026-03-04 01:28:04 +01:00
remove globals.Buildarch from codebase
All checks were successful
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
clawbot added the
bot
label 2026-03-04 01:28:52 +01:00
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 added
merge-ready
and removed
bot
labels 2026-03-04 01:30:47 +01:00
sneak was assigned by clawbot 2026-03-04 01:30:53 +01:00
sneak merged commit a51e863017 into main 2026-03-04 12:07:58 +01:00
sneak deleted branch fix/issue-30-remove-buildarch 2026-03-04 12:07:58 +01:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sneak/webhooker#31
No description provided.