Skip to content

refactor(ginrouter): extract to a separate module; drop gin from main go.mod#24

Merged
paulmanoni merged 1 commit into
mainfrom
feat/ginrouter-module
Jun 19, 2026
Merged

refactor(ginrouter): extract to a separate module; drop gin from main go.mod#24
paulmanoni merged 1 commit into
mainfrom
feat/ginrouter-module

Conversation

@paulmanoni

Copy link
Copy Markdown
Owner

Makes httpx/ginrouter its own Go module so gin leaves the main module's dependency graph entirely.

  • go.mod/go.sum no longer reference gin or its tree (sonic, golang-asm, goccy, validator, json-iterator); go list -m all drops 182 → 161 modules.
  • The default build was already gin-free at link time (v1.19.0); now it's gin-free at the module level — go get github.com/paulmanoni/nexus pulls none of gin's tree.
  • Import path is unchanged (.../httpx/ginrouter); it versions independently and is fetched with its own go get. stdrouter (default) + chirouter stay in the main module (chi has no transitive deps).

Main module: go build ./... green, go test ./... 36 pkgs OK / 0 FAIL. The nested module uses a local replace for in-repo dev; at release it's pinned to a parent tag that no longer contains httpx/ginrouter.

🤖 Generated with Claude Code

… go.mod

httpx/ginrouter is now its own Go module, so gin (and its sonic/golang-asm/
goccy/validator/json-iterator tree) leaves the main module's dependency graph
entirely — go.mod/go.sum no longer reference gin, and `go list -m all` drops
from 182 to 161 modules. The default build was already gin-free at link time
since v1.19.0; this makes it gin-free at the module level too.

The import path (.../httpx/ginrouter) is unchanged; it just versions
independently and is fetched with its own `go get`. stdrouter (default) and
chirouter stay inside the main module (chi has no transitive deps).

Uses a local `replace` to the parent for in-repo development; at release this
is pinned to a parent tag that no longer contains httpx/ginrouter.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@paulmanoni paulmanoni merged commit 24704b6 into main Jun 19, 2026
2 checks passed
@paulmanoni paulmanoni deleted the feat/ginrouter-module branch June 19, 2026 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants