Commit 960ccf3
chore(v1.100.1b.C1): delete GOTH orphan Go packages (#501)
* chore(v1.100.1b.C1): delete GOTH orphan Go packages
Removes the 5 packages that became orphaned-but-still-compiling after
1.100.1b.B deleted cmd/nftban-ui, cmd/nftban-ui-auth, internal/ui:
- internal/api/ (35 files, ~9.4k LOC)
- internal/middleware/ (3 files, ~932 LOC)
- internal/auth/ (2 files, ~457 LOC)
- internal/session/ (1 file, ~219 LOC)
- internal/authproto/ (1 file, ~53 LOC)
These 5 packages form a closed dependency subgraph: every cross-edge is
internal to the set, and zero non-self packages import any of them. The
single outside reference (cmd/nftband/daemon_http.go:82) is a TODO
comment, not an import.
Verified: `go build ./...` is expected to remain clean — no other
binary (nftban-core, nftband, nftban-installer, nftban-validate)
imports these packages.
Tests removed with their packages:
- internal/api/handlers_logs_test.go
- internal/api/helpers_test.go
- internal/middleware/rate_limiter_test.go
Out of scope for C1 (deferred to C2):
- internal/nftbanconf/ UIService field removals
- cli/lib/cmd_*.sh nftban-ui carveouts + cli/cmd_ui.sh dead-file delete
- internal/installer/ UI socket/payload/path carveouts
- packaging/ (rpm spec, deb rules, build_nftban.sh) carveouts
Lifecycle completion lane (PR-25..PR-30) remains explicitly OPEN.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs(v1.100.1b.C1): CHANGELOG entry for orphan-package delete
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* chore(deps): go mod tidy after 1.100.1b.C1 orphan-package delete
Mechanical fallout: removes the 2 GOTH dependencies that were only
imported by the deleted orphan packages.
- github.com/golang-jwt/jwt/v5 v5.3.1 (was used by internal/auth)
- github.com/gorilla/mux v1.8.1 (was used by internal/api)
go.mod: -2 lines | go.sum: -4 lines | no behavior change.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 74ce141 commit 960ccf3
45 files changed
Lines changed: 26 additions & 11102 deletions
File tree
- internal
- api
- authproto
- auth
- middleware
- session
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
14 | 40 | | |
15 | 41 | | |
16 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
18 | | - | |
19 | | - | |
20 | 16 | | |
21 | 17 | | |
22 | 18 | | |
| |||
0 commit comments