You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: hoist Go module from go/ to repo root (#162)
The /go/ subdirectory was a relic of the Java/Go coexistence period.
Phase 6 cutover (#132) deleted the Java side a month ago, leaving the
Go module stranded one level deep. That cost the project a clean
`go install` story: users had to type
`github.com/randomcodespace/codeiq/go/cmd/codeiq@v0.3.x` and pseudo-
version resolution kicked in because there were no `go/vX.Y.Z` tags.
This commit moves the module to the repo root so:
- `go install github.com/randomcodespace/codeiq/cmd/codeiq@v0.3.x`
resolves directly to the matching `vX.Y.Z` tag (no `/go/` suffix,
no separate tag namespace).
- `cd codeiq && go build ./cmd/codeiq` Just Works.
- Standard Go project layout — what every contributor expects.
### What moved
- `go/cmd/` → `cmd/`
- `go/internal/` → `internal/`
- `go/testdata/` → `testdata/`
- `go/parity/` → `parity/`
- `go/go.mod` → `go.mod` (module path drops `/go`)
- `go/go.sum` → `go.sum`
- `go/.gitignore` → merged into root `.gitignore`
`git mv` was used for every tracked path so `git log --follow` history
survives the rename.
### Mechanical rewrites
- 320 Go files: import path `github.com/randomcodespace/codeiq/go/...`
→ `github.com/randomcodespace/codeiq/...`
- 5 CI workflows: dropped `working-directory: go`,
`cache-dependency-path: go/go.sum`, `cd go &&` wrappers, and the
`go/cmd go/internal` jscpd target prefix.
- `.goreleaser.yml`: dropped `dir: go` from each build, removed
`cd go &&` from the `before:` hooks, updated all `-X
…/go/internal/buildinfo.*` ldflags to the new path.
- `.github/dependabot.yml`: `directory: "/go"` → `directory: "/"`.
- README: replaced `cd codeiq/go` with `cd codeiq`; added an explicit
`go install` example targeting the now-root-level path.
- CLAUDE.md, PROJECT_SUMMARY.md, AGENTS.md: directory map +
module-path callouts updated.
### Tests + verification
- `CGO_ENABLED=1 go build ./...` — clean.
- `CGO_ENABLED=1 go test ./... -count=1` — full suite passes,
0 FAIL across 41 test-bearing packages.
- Smoke on `testdata/fixture-minimal`:
- `index` exits 0 (5 files / 44 nodes / 24 edges).
- `enrich` exits 0 (45 nodes / 68 edges / 1 service / FTS indexed).
Historical `docs/superpowers/plans/*.md` keep their original
`go/internal/...` references — those are point-in-time snapshots,
not living docs.
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments