chore: rename Go module path gitea.d-ma.be → git.d-ma.be in template #4

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

Background

Gitea renamed from gitea.d-ma.be to git.d-ma.be (infra ADR-0004). The template-go-web template repo has module gitea.d-ma.be/mathias/hostexecutor — this is a template placeholder that should be updated so new projects scaffolded from it start with the correct hostname.

Scope

  • go.modmodule gitea.d-ma.be/mathias/hostexecutormodule git.d-ma.be/mathias/hostexecutor
  • Any .go files with the old path — bulk replace
go mod edit -module git.d-ma.be/mathias/hostexecutor
find . -name '*.go' | xargs sed -i 's|gitea.d-ma.be/mathias/hostexecutor|git.d-ma.be/mathias/hostexecutor|g'

Note: also check if the template create_project_from_template tooling substitutes __MODULE_PATH__ — if so, the template README or scaffold config may also reference gitea.d-ma.be.

Done when

  • go.mod module line reads git.d-ma.be/mathias/hostexecutor
  • No remaining gitea.d-ma.be refs in template files
## Background Gitea renamed from `gitea.d-ma.be` to `git.d-ma.be` (infra ADR-0004). The `template-go-web` template repo has `module gitea.d-ma.be/mathias/hostexecutor` — this is a template placeholder that should be updated so new projects scaffolded from it start with the correct hostname. ## Scope - `go.mod` — `module gitea.d-ma.be/mathias/hostexecutor` → `module git.d-ma.be/mathias/hostexecutor` - Any `.go` files with the old path — bulk replace ```bash go mod edit -module git.d-ma.be/mathias/hostexecutor find . -name '*.go' | xargs sed -i 's|gitea.d-ma.be/mathias/hostexecutor|git.d-ma.be/mathias/hostexecutor|g' ``` Note: also check if the template `create_project_from_template` tooling substitutes `__MODULE_PATH__` — if so, the template README or scaffold config may also reference `gitea.d-ma.be`. ## Done when - `go.mod` module line reads `git.d-ma.be/mathias/hostexecutor` - No remaining `gitea.d-ma.be` refs in template files
Author
Owner

Already fixed at source: go.mod on main uses __MODULE_PATH__ placeholder (not hardcoded gitea.d-ma.be), substituted correctly by new-project.sh (local-dev commit 1c87d9e uses git.d-ma.be). Confirmed via live scaffold test. Closing.

Already fixed at source: go.mod on main uses `__MODULE_PATH__` placeholder (not hardcoded `gitea.d-ma.be`), substituted correctly by `new-project.sh` (`local-dev` commit 1c87d9e uses `git.d-ma.be`). Confirmed via live scaffold test. Closing.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mathias/template-go-web#4