Skip to content

website: serve go-import tag for holos.run/distro - #482

Merged
jeffmccune merged 1 commit into
mainfrom
website-go-import-distro
Oct 19, 2026
Merged

jeffmccune merged 1 commit into
mainfrom
website-go-import-distro

Conversation

@jeffmccune

Copy link
Copy Markdown
Contributor

Summary

Adds doc/website/static/distro/index.html, a static page carrying

<meta name="go-import" content="holos.run/distro git https://github.com/holos-run/private-distro">

so the go command resolves the vanity module path holos.run/distro to the distro repository. The go command walks up from subpaths, so this one page covers every package in the module. A go-source tag and a meta refresh to the repository are included for humans and older godoc tools.

Nothing in static/_redirects, the client-redirects plugin, or src/pages shadows /distro/.

Verify after the preview deploys

curl -sIL '<preview>/distro?go-get=1'            # 308 to /distro/ keeping ?go-get=1, then 200
curl -sL  '<preview>/distro?go-get=1' | grep go-import

The repository is private for now, so go get additionally needs GOPRIVATE=holos.run/distro and git credentials for github.com.

Adds a static page at /distro/ so the go command resolves the vanity
module path holos.run/distro to github.com/holos-run/private-distro.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying holos with  Cloudflare Pages  Cloudflare Pages

Latest commit: f489025
Status: ✅  Deploy successful!
Preview URL: https://d330fdea.holos.pages.dev
Branch Preview URL: https://website-go-import-distro.holos.pages.dev

View logs

@jeffmccune
jeffmccune marked this pull request as ready for review October 19, 2026 02:53
@jeffmccune
jeffmccune merged commit 61269e5 into main Oct 19, 2026
4 checks passed
@jeffmccune
jeffmccune deleted the website-go-import-distro branch October 19, 2026 02:56
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