Unify Go modules + go.work #2

Closed
opened 2026-08-13 14:05:47 +01:00 by eSlider · 1 comment
Owner

Why

Three go.mod files (/, bin/kbsearch, bin/chats) break go test ./... and hide cgo.

Do

  • One root module github.com/eSlider/2dph.
  • Committed go.work with relative use only. Machine replaces in gitignored go.work.local.
  • Nested go.mod gone. CI uses the root module.

Test

  • go test ./... from repo root (cgo packages tagged or in a job with ladybug).
  • Ranking tests still run without ladybug.
## Why Three `go.mod` files (`/`, `bin/kbsearch`, `bin/chats`) break `go test ./...` and hide cgo. ## Do - One root module `github.com/eSlider/2dph`. - Committed `go.work` with relative `use` only. Machine replaces in gitignored `go.work.local`. - Nested `go.mod` gone. CI uses the root module. ## Test - `go test ./...` from repo root (cgo packages tagged or in a job with ladybug). - Ranking tests still run without ladybug.
Author
Owner

Done in GitHub https://github.com/eSlider/2dph/pull/8 — one root go.mod + go.work; nested bin/kbsearch and bin/chats modules gone. CI uses setup-go from go.mod.

Done in GitHub https://github.com/eSlider/2dph/pull/8 — one root go.mod + go.work; nested bin/kbsearch and bin/chats modules gone. CI uses setup-go from go.mod.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eSlider/2dph#2