internal/ and libs/ were split into 9 single-package Go modules, held together by 22 replace directives across 7 go.mod files. The module boundaries bought nothing: internal/dto, internal/browser and internal/migrations were already plain packages in the root module and worked fine. Delete the 9 go.mod/go.sum pairs so those packages belong to the root github.com/jobs-scraper module. Import paths are unchanged -- github.com/jobs-scraper/internal/domain resolves identically whether it is its own module or a package inside the root module -- so no .go file is touched by this commit. Each deployable module now needs one require + one replace on the root module instead of four to six: go.work entries: 14 -> 5 replace directives: 22 -> 4 go.mod files: 14 -> 5 Dependency versions are deliberately held at their previous pins. A bare go mod tidy resolved several to latest once the per-package constraints were gone (lib/pq 1.10.9 -> 1.12.3, amqp091-go 1.10.0 -> 1.13.0, migrate 4.19.0 -> 4.19.1, go-openai 1.41.2 -> 1.42.0, genai 1.39.0 -> 1.66.0); all five are pinned back, since a structural refactor should not move dependency versions. Side effect worth noting: `go build ./...` at the repo root previously matched only 2 packages, because everything else sat behind a module boundary. It now covers all 12 shared packages, so the build and vet steps in .forgejo/workflows/ actually exercise the shared code. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
37 lines
1.3 KiB
Modula-2
37 lines
1.3 KiB
Modula-2
module github.com/jobs-scraper/services/api
|
|
|
|
go 1.24.0
|
|
|
|
require (
|
|
github.com/gorilla/mux v1.8.1
|
|
github.com/gorilla/schema v1.4.1
|
|
github.com/jobs-scraper v0.0.0
|
|
github.com/joho/godotenv v1.5.1
|
|
github.com/swaggo/http-swagger v1.3.4
|
|
github.com/swaggo/swag v1.16.3
|
|
)
|
|
|
|
require (
|
|
github.com/KyleBanks/depth v1.2.1 // indirect
|
|
github.com/go-openapi/jsonpointer v0.19.5 // indirect
|
|
github.com/go-openapi/jsonreference v0.20.0 // indirect
|
|
github.com/go-openapi/spec v0.20.6 // indirect
|
|
github.com/go-openapi/swag v0.19.15 // indirect
|
|
github.com/golang-migrate/migrate/v4 v4.19.0 // indirect
|
|
github.com/hashicorp/errwrap v1.1.0 // indirect
|
|
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
|
github.com/josharian/intern v1.0.0 // indirect
|
|
github.com/kr/pretty v0.3.1 // indirect
|
|
github.com/lib/pq v1.10.9 // indirect
|
|
github.com/mailru/easyjson v0.7.6 // indirect
|
|
github.com/rabbitmq/amqp091-go v1.10.0 // indirect
|
|
github.com/rogpeppe/go-internal v1.13.1 // indirect
|
|
github.com/swaggo/files v0.0.0-20220610200504-28940afbdbfe // indirect
|
|
golang.org/x/net v0.47.0 // indirect
|
|
golang.org/x/sync v0.18.0 // indirect
|
|
golang.org/x/tools v0.38.0 // indirect
|
|
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
|
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
|
)
|
|
|
|
replace github.com/jobs-scraper => ../..
|