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.
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Why
Three
go.modfiles (/,bin/kbsearch,bin/chats) breakgo test ./...and hide cgo.Do
github.com/eSlider/2dph.go.workwith relativeuseonly. Machine replaces in gitignoredgo.work.local.go.modgone. CI uses the root module.Test
go test ./...from repo root (cgo packages tagged or in a job with ladybug).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.