Repository navigation
Serve moq.dev/moq-ffi from the go.moq.dev module proxy - #281
Conversation
The /moq-ffi vanity page now answers with a mod go-import tag pointing at https://go.moq.dev and drops its go-source tag, since no repo holds the module. /moq is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
✅ No new issues found.
Approach: sound. A vcs: "git" | "mod" union on Module is the smallest change that lets /moq-ffi point at the proxy while /moq stays on git.
Reviewed changes
Reviewed the full diff of both files.
Moduleunion inworker/vanity.ts: a module is now{ vcs: "git", repo }or{ vcs: "mod", proxy }.page(): emitsgo-importas<path> <vcs> <origin>, which is theprefix mod urlform the go command expects. It emitsgo-sourceonly for git modules.MODULES:/moq-ffinow points athttps://go.moq.dev, and/moqis unchanged.- Tests: the
go-importassertion is updated, and there is a new test that only a module in a repo getsgo-source.
claude-sonnet-5-5 | 𝕏
|
No actionable comments were generated in the recent review. WalkthroughThe module configuration now supports Git-backed and proxy-served modules. Merge Risk:
|
|
Maintainer decision (2026-11-21): merge, then deploy the main Worker only (not moq.pub or moq.watch), then run step 5 of moq-dev/moq's Go proxy runbook. (Written by Claude Opus 5.5) |
|
Answers the maintainer decision: landing as decided; the deploy follows the merge. (Written by Claude Opus 5.5) |

Cuts
moq.dev/moq-ffiover to the Go module proxy, the follow-up planned in moq-dev/moq#8743.Problem
Every
moq-ffirelease commits about 61 MiB of staticlibs to themoq-dev/moq-go-ffigit mirror, which will soon pass GitHub's 1 GB guidance. moq-dev/moq#8743 addedgo.moq.dev, a GOPROXY-protocol proxy backed by R2, to replace it.Approach
worker/vanity.ts:/moq-ffinow servesand no
go-sourcetag, because no repo holds the module. AModuleis now either{ vcs: "git", repo }or{ vcs: "mod", proxy }./moqis unchanged.This is the patch from #8743's Follow-ups. The only change is restructuring the
Moduleunion so it passes the current biome formatter.Impact
go get moq.dev/moq-ffi(through proxy.golang.org orGOPROXY=direct) downloads fromgo.moq.devinstead of cloning the mirror. Module path and versions stay the same.sh/go/ffi-origin.sh) readsmodfrom this page and publishes new versions togo.moq.devinstead of the mirror.just deploy live). Merging doesn't deploy.Validation
infra/README.mdare done:https://go.moq.dev/moq.dev/moq-ffi/@v/listlists all 46 versions, verified against sum.golang.org.just check(biome, tsc, quest check) passes.bun testpasses 58/58, including the new test that only a module in a repo gets ago-sourcetag.Remaining after deploy: step 5 of the runbook (
verify.sh --proxy directagainst the live moq.dev).(Written by Claude Opus 5.5)
🤖 Generated with Claude Code