From 57b6352c98b887f5b6a8aa5f3b98d413d72510a4 Mon Sep 17 00:00:00 2001 From: Mathias Date: Sat, 5 Sep 2026 14:46:41 +0200 Subject: [PATCH] fix(mod): move module path off the decommissioned gitea.d-ma.be host go.mod declared this module under gitea.d-ma.be, the pre-rename host (infra ADR-0004). That name still resolves in DNS but no longer serves -- HTTPS to it fails outright -- so the declared path pointed at nothing. It built anyway, because a Go module does not have to be fetchable from its own declared path to compile locally. That is exactly what made it durable rot: nothing failed, so nothing flagged it. What it did break is anyone trying to depend on this repo -- `go get git.d-ma.be/mathias/` fails on the path mismatch, and an importer would have to spell the dead host. Verified safe before changing: nothing in the estate requires this module (checked every go.mod across the Go repos) -- these are leaf binaries, so the rename breaks no importer. Mechanical: module path plus every internal import rewritten, templ regenerated where applicable. Verified after -- go build, go vet, go test and golangci-lint (against a Go 1.26.1 toolchain, matching CI) all pass, and no gitea.d-ma.be reference remains in any .go/.templ/.mod file. Found by an estate-wide scan for the old host, prompted by the same rot turning up in tapir internal/web/views.templ (tapir@4bafd5f). --- cmd/eval/main.go | 2 +- cmd/jepa-fx-risk/main.go | 2 +- go.mod | 2 +- internal/eval/eval_test.go | 2 +- internal/eval/var_test.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/eval/main.go b/cmd/eval/main.go index 927b6ee..f486720 100644 --- a/cmd/eval/main.go +++ b/cmd/eval/main.go @@ -24,7 +24,7 @@ import ( "math" "os" - "gitea.d-ma.be/mathias/jepa-fx-risk/internal/eval" + "git.d-ma.be/mathias/jepa-fx-risk/internal/eval" ) func main() { diff --git a/cmd/jepa-fx-risk/main.go b/cmd/jepa-fx-risk/main.go index 7638662..96b3c41 100644 --- a/cmd/jepa-fx-risk/main.go +++ b/cmd/jepa-fx-risk/main.go @@ -5,7 +5,7 @@ import ( "net/http" "os" - "gitea.d-ma.be/mathias/jepa-fx-risk/internal/web" + "git.d-ma.be/mathias/jepa-fx-risk/internal/web" ) func main() { diff --git a/go.mod b/go.mod index f5b458f..4ff2196 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitea.d-ma.be/mathias/jepa-fx-risk +module git.d-ma.be/mathias/jepa-fx-risk go 1.26 diff --git a/internal/eval/eval_test.go b/internal/eval/eval_test.go index 63cc1c4..f2f6332 100644 --- a/internal/eval/eval_test.go +++ b/internal/eval/eval_test.go @@ -5,7 +5,7 @@ import ( "math/rand" "testing" - "gitea.d-ma.be/mathias/jepa-fx-risk/internal/eval" + "git.d-ma.be/mathias/jepa-fx-risk/internal/eval" ) func seededRNG(seed int64) *rand.Rand { diff --git a/internal/eval/var_test.go b/internal/eval/var_test.go index 0a06533..817dafe 100644 --- a/internal/eval/var_test.go +++ b/internal/eval/var_test.go @@ -4,7 +4,7 @@ import ( "math" "testing" - "gitea.d-ma.be/mathias/jepa-fx-risk/internal/eval" + "git.d-ma.be/mathias/jepa-fx-risk/internal/eval" ) // ── VaRBreachRate golden tests ──────────────────────────────────────────────