Skip to content

fix(go): real module path for the v1 port (drop example/ placeholder)#71

Merged
mdheller merged 2 commits into
mainfrom
fix/go-module-path
Jul 4, 2026
Merged

fix(go): real module path for the v1 port (drop example/ placeholder)#71
mdheller merged 2 commits into
mainfrom
fix/go-module-path

Conversation

@mdheller

Copy link
Copy Markdown
Member

What

go/tritrpcv1/go.mod declared module github.com/example/tritrpcv1 — a leftover scaffold placeholder. That makes the module un-go get-able and its imports reference a fake org. This points it at the real path github.com/SocioProphet/TriTRPC/go/tritrpcv1 (go.mod + the cmd/trpc importer).

Why keep v1 (not de-version, not Go /v2 SIV)

The stable line is named consistently across languages — rust/tritrpc_v1, go/tritrpcv1, reference/tritrpc_v1.py — and that auditable 1:1 cross-language anchor is the whole point of a reference implementation. So the v1 stays. When the Go vNext port lands it gets its own sibling module go/tritrpcvnext (mirroring reference/experimental/…_v4), rather than de-versioning v1 or leaning on Go semantic-import /v2 path suffixes.

Safety

Effectively non-breaking: the example/ placeholder is unresolvable, so no external importer can exist. Verified locally with Go 1.22: go build ./..., go vet ./..., go test ./... all pass.

mdheller added 2 commits June 27, 2026 15:41
go/tritrpcv1 declared 'module github.com/example/tritrpcv1' — an unresolvable scaffold
placeholder, so the module could not be 'go get'-able and imports referenced a fake org.
Point it at the real path github.com/SocioProphet/TriTRPC/go/tritrpcv1 (go.mod + the
cmd/trpc importer).

Keeps the v1 suffix deliberately: the stable line is named consistently across languages
(rust/tritrpc_v1, reference/tritrpc_v1.py), and that 1:1 cross-language anchor is the point
of a reference implementation. vNext gets its own sibling module (go/tritrpcvnext) when the
Go port lands — mirroring reference/experimental/..._v4 — rather than de-versioning v1 or
using Go semantic-import /v2 suffixes.

Effectively non-breaking: the example/ placeholder is unresolvable, so no external importer
exists. Verified: go build ./..., go vet ./..., go test ./... all pass.
@mdheller mdheller merged commit cdee5c3 into main Jul 4, 2026
8 checks passed
@mdheller mdheller deleted the fix/go-module-path branch July 4, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant