Module path on our own domain: go.macula.io/macula-go #4

Open
opened 2026-11-24 03:21:07 +00:00 by pallas · 0 comments
Member

Purpose (port): go get and go install fetch macula-go by an import path we control, so the origin behind it can move without a consumer changing an import.

Refs macula-io/forge-setup#30 section 3. DECIDED 2026-11-24 "go.macula.io/macula-go (Recommended)".

What changes

github.com/macula-io/macula-go → go.macula.io/macula-go in 264 files: the module line, every import in 260 Go files, and the two instructions that name the path (README's go get, cabi/CONTRACT.md's go run .../teststation). Three https://github.com/macula-io/macula-go/... addresses stay: the CI badge's link and two CHANGELOG issue links are web addresses, not module paths, and the ported repos keep the GitHub badge (as macula-rust, macula-py and macula-dotnet do).

One mechanical PR. scripts/interop/v5.sh's default image moves off ghcr to the forge's macula-ci-otp at the digest its siblings (sealed.sh, groups.sh) and ci.yml already pin — the ghcr image is the last one the tree names.

The page it needs

https://go.macula.io/macula-go?go-get=1 answers one static file from the forge box's Caddy:

<meta name="go-import" content="go.macula.io/macula-go git https://pushin.eu/macula-io/macula-go">

macula-io is private on the forge, so the repository the page names is the public pushin.eu mirror, which already serves its own go-import (checked 2026-11-24). A config PR in macula-io/forge-setup, with a local curl -H 'Host: go.macula.io' proof.

Order

The DNS record (go.macula.io → the forge box) is one line in Raf's SDK menu. Both PRs are reviewed before it, and the module-path PR lands only after go.macula.io resolves: a module path that answers nothing makes the repository unusable for go get at any version from the moment the module line changes.

Consumers, outside this package (named, not touched)

Seven trees import the old path and go on resolving it from the module cache / proxy.golang.org at their pinned versions: macula-cli, macula-fovea/cli, mcl-fovea-keeper, macula-craft-collab/tests/teststation, macula-rust/tests/teststation, macula-py/scripts/interop/capture, macula-dotnet/scripts/interop/capture. Each needs its own sweep to reach a version published under the new path; that is a follow-up package per repository, not this one.

Done when

  1. go.macula.io/macula-go is the module line, and no Go path in the tree names the old one.
  2. go build ./... and go vet ./... pass with the new path — and, Actions being on in this repository, the branch's own run agrees.
  3. scripts/interop/v5.sh names no ghcr image.
  4. After the DNS record: curl 'https://go.macula.io/macula-go?go-get=1' answers the meta above, at depth too (/macula-go/cbor?go-get=1).
  5. After the DNS record: a fresh go get go.macula.io/macula-go@<tag> fetches it. The first tag under the new path must be a new version: go.mod at every existing tag names the old path, so @v0.31.0 under the new path is a path mismatch by definition.
Purpose (port): `go get` and `go install` fetch macula-go by an import path we control, so the origin behind it can move without a consumer changing an import. Refs macula-io/forge-setup#30 section 3. DECIDED 2026-11-24 "go.macula.io/macula-go (Recommended)". ## What changes `github.com/macula-io/macula-go` → `go.macula.io/macula-go` in 264 files: the module line, every import in 260 Go files, and the two instructions that name the path (README's `go get`, `cabi/CONTRACT.md`'s `go run .../teststation`). Three `https://github.com/macula-io/macula-go/...` addresses stay: the CI badge's link and two CHANGELOG issue links are web addresses, not module paths, and the ported repos keep the GitHub badge (as macula-rust, macula-py and macula-dotnet do). One mechanical PR. `scripts/interop/v5.sh`'s default image moves off ghcr to the forge's `macula-ci-otp` at the digest its siblings (`sealed.sh`, `groups.sh`) and `ci.yml` already pin — the ghcr image is the last one the tree names. ## The page it needs `https://go.macula.io/macula-go?go-get=1` answers one static file from the forge box's Caddy: `<meta name="go-import" content="go.macula.io/macula-go git https://pushin.eu/macula-io/macula-go">` `macula-io` is private on the forge, so the repository the page names is the public pushin.eu mirror, which already serves its own go-import (checked 2026-11-24). A config PR in macula-io/forge-setup, with a local `curl -H 'Host: go.macula.io'` proof. ## Order The DNS record (`go.macula.io` → the forge box) is one line in Raf's SDK menu. Both PRs are reviewed before it, and **the module-path PR lands only after go.macula.io resolves**: a module path that answers nothing makes the repository unusable for `go get` at any version from the moment the module line changes. ## Consumers, outside this package (named, not touched) Seven trees import the old path and go on resolving it from the module cache / proxy.golang.org at their pinned versions: `macula-cli`, `macula-fovea/cli`, `mcl-fovea-keeper`, `macula-craft-collab/tests/teststation`, `macula-rust/tests/teststation`, `macula-py/scripts/interop/capture`, `macula-dotnet/scripts/interop/capture`. Each needs its own sweep to reach a version published under the new path; that is a follow-up package per repository, not this one. ## Done when 1. `go.macula.io/macula-go` is the module line, and no Go path in the tree names the old one. 2. `go build ./...` and `go vet ./...` pass with the new path — and, Actions being on in this repository, the branch's own run agrees. 3. `scripts/interop/v5.sh` names no ghcr image. 4. After the DNS record: `curl 'https://go.macula.io/macula-go?go-get=1'` answers the meta above, at depth too (`/macula-go/cbor?go-get=1`). 5. After the DNS record: a fresh `go get go.macula.io/macula-go@<tag>` fetches it. The first tag under the new path must be a **new** version: go.mod at every existing tag names the old path, so `@v0.31.0` under the new path is a path mismatch by definition.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
macula-io/macula-go#4
No description provided.