chore: rename Go module path gitea.d-ma.be → git.d-ma.be #39

Closed
opened 2026-06-15 03:44:24 +00:00 by mathias · 1 comment
Owner

Background

Gitea renamed from gitea.d-ma.be to git.d-ma.be (infra ADR-0004). Module path is a logical name — builds not broken. Housekeeping rename.

Scope

  • go.modmodule gitea.d-ma.be/mathias/gitea-mcpmodule git.d-ma.be/mathias/gitea-mcp
  • go.mod — dependency gitea.d-ma.be/mathias/mcp-chassisgit.d-ma.be/mathias/mcp-chassis (do after mcp-chassis is renamed and a new version tagged)
  • All .go files — bulk replace both paths

Tooling:

go mod edit -module git.d-ma.be/mathias/gitea-mcp
find . -name '*.go' | xargs sed -i 's|gitea.d-ma.be/mathias/gitea-mcp|git.d-ma.be/mathias/gitea-mcp|g'
find . -name '*.go' | xargs sed -i 's|gitea.d-ma.be/mathias/mcp-chassis|git.d-ma.be/mathias/mcp-chassis|g'
go get git.d-ma.be/mathias/mcp-chassis@latest
go build ./...
go test ./...

Sequencing

Depends on mcp-chassis being renamed first (mcp-chassis#1). Do not merge this until mcp-chassis has a new tag on git.d-ma.be.

Done when

  • Both module paths updated
  • go build ./... and go test ./... pass
## Background Gitea renamed from `gitea.d-ma.be` to `git.d-ma.be` (infra ADR-0004). Module path is a logical name — builds not broken. Housekeeping rename. ## Scope - `go.mod` — `module gitea.d-ma.be/mathias/gitea-mcp` → `module git.d-ma.be/mathias/gitea-mcp` - `go.mod` — dependency `gitea.d-ma.be/mathias/mcp-chassis` → `git.d-ma.be/mathias/mcp-chassis` (do **after** mcp-chassis is renamed and a new version tagged) - All `.go` files — bulk replace both paths **Tooling:** ```bash go mod edit -module git.d-ma.be/mathias/gitea-mcp find . -name '*.go' | xargs sed -i 's|gitea.d-ma.be/mathias/gitea-mcp|git.d-ma.be/mathias/gitea-mcp|g' find . -name '*.go' | xargs sed -i 's|gitea.d-ma.be/mathias/mcp-chassis|git.d-ma.be/mathias/mcp-chassis|g' go get git.d-ma.be/mathias/mcp-chassis@latest go build ./... go test ./... ``` ## Sequencing **Depends on mcp-chassis being renamed first** (mcp-chassis#1). Do not merge this until mcp-chassis has a new tag on `git.d-ma.be`. ## Done when - Both module paths updated - `go build ./...` and `go test ./...` pass
Author
Owner

Done in v0.4.2 (commit on main).

Sequencing gate was already satisfied — mcp-chassis migrated to git.d-ma.be in 3329ff3 (go.mod requires git.d-ma.be/mathias/mcp-chassis v0.2.0). So the self-module rename went ahead:

  • go mod edit -module git.d-ma.be/mathias/gitea-mcp
  • bulk import rewrite gitea.d-ma.be/mathias/gitea-mcpgit.d-ma.be/mathias/gitea-mcp across all .go files (0 refs remain).
  • go build ./... + task check green.

gitea-mcp is a server binary, not an imported library, so no downstream consumers break.

Left untouched (out of module-path scope): the GITEA_BASE_URL example string in config.go/config_test.go — a runtime base-URL fixture, not the module path (and the live deployment already sets GITEA_BASE_URL=https://git.d-ma.be).

Done in v0.4.2 (commit on `main`). Sequencing gate was already satisfied — `mcp-chassis` migrated to `git.d-ma.be` in 3329ff3 (`go.mod` requires `git.d-ma.be/mathias/mcp-chassis v0.2.0`). So the self-module rename went ahead: - `go mod edit -module git.d-ma.be/mathias/gitea-mcp` - bulk import rewrite `gitea.d-ma.be/mathias/gitea-mcp` → `git.d-ma.be/mathias/gitea-mcp` across all `.go` files (0 refs remain). - `go build ./...` + `task check` green. gitea-mcp is a server binary, not an imported library, so no downstream consumers break. Left untouched (out of module-path scope): the `GITEA_BASE_URL` example string in `config.go`/`config_test.go` — a runtime base-URL fixture, not the module path (and the live deployment already sets `GITEA_BASE_URL=https://git.d-ma.be`).
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mathias/gitea-mcp#39