v0.6.13: remove vestigial scope.admins field + New param (#177 follow-up) #200

Merged
Cordy merged 5 commits from ship-v0.6.13 into main 2026-08-12 01:33:19 +00:00
Owner

Pure internal tidy, no behaviour change.

Since #177 scoped admins exactly like regular users, scope.Driver.admins and the admins parameter of scope.New(inner, admins) were dead — kept only so call sites didn't have to change. This removes both: the struct field, the constructor parameter, the now-false doc sentence about "retained for call-site compatibility", and a stale test comment referencing the admins map.

Call sites were rewritten with gofmt -r (AST-correct): scope.New(a, b) -> scope.New(a) for external callers (8 in scope_test.go, 1 in cmd/cairnd/main.go), plus New(a, b) -> New(a) inside the scope package for the white-box scope_ro_test.go (2). go vet, full go test ./..., and the dual-arch build all pass.

No image/dogfood redeploy needed — this is a no-op refactor; the next functional release carries it.

Pure internal tidy, no behaviour change. Since #177 scoped admins exactly like regular users, `scope.Driver.admins` and the `admins` parameter of `scope.New(inner, admins)` were dead — kept only so call sites didn't have to change. This removes both: the struct field, the constructor parameter, the now-false doc sentence about "retained for call-site compatibility", and a stale test comment referencing the admins map. Call sites were rewritten with `gofmt -r` (AST-correct): `scope.New(a, b) -> scope.New(a)` for external callers (8 in `scope_test.go`, 1 in `cmd/cairnd/main.go`), plus `New(a, b) -> New(a)` inside the scope package for the white-box `scope_ro_test.go` (2). `go vet`, full `go test ./...`, and the dual-arch build all pass. No image/dogfood redeploy needed — this is a no-op refactor; the next functional release carries it.
ci: ship-v0613 workflow (scope.admins cleanup)
Some checks failed
ship-v0613 / ship (push) Failing after 7s
a714960c3c
ci: fix BusyBox grep (use find) in ship-v0613
Some checks failed
ship-v0613 / ship (push) Failing after 10s
ff83b889b2
ci: also rewrite unqualified New() in scope pkg white-box tests
All checks were successful
ship-v0613 / ship (push) Successful in 36s
9e92a3b9c9
v0.6.13: remove vestigial scope.admins field + New param (#177 follow-up)
All checks were successful
ci / test-and-build (pull_request) Successful in 34s
6eb2b8987a
Cordy merged commit 15b40297dd into main 2026-08-12 01:33:19 +00:00
Cordy deleted branch ship-v0.6.13 2026-08-12 01:33:21 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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: Cordy/Cairn#200
No description provided.