ci(pages): serve the go.daytona.com vanity import path from main
Merged
MD
12d ago+187+187+012345678901234567890123456789-2-2-0123456789
go get go.daytona.com/... cannot work today. Pages already serves go.daytona.com, but the site is built with DOMAIN: github.com/daytona/clients, so its go-import tag has the wrong prefix and the Go proxy rejects it:
unrecognized import path "go.daytona.com/sdk-go": ... meta tag github.com/daytona/clients did not match import path go.daytona.com/sdk-go
The 2.x Go SDK will be go.daytona.com/sdk/v2 (code in sdk-go/, tags sdk-go/v2.x.y), released from main. This PR moves the site to main:
scripts/go-vanity-site.shgenerates<meta name="go-import" content="go.daytona.com/sdk git https://github.com/daytona/clients sdk-go">. The fourth field (Go 1.25+,go help importpath) maps the path to thesdk-go/directory, so the import path does not repeat the directory name. I checked this end to end with Go 1.26.10 against a local server and a repo holding bothsdk-go/v0.xandsdk-go/v2.xtags:go get,go get <pkg>@v2.1.0,go mod tidyandgo get -uall resolve/v2.go-sourcelinks point atmain/sdk-go, and theCNAMEfile is always written.scripts/go-vanity-site_test.shchecks the prefix, the404.htmlcatch-all (Pages answers module paths with it), thego-sourcebranch andCNAME..github/workflows/go-vanity-pages.yamlruns the tests on PRs and deploys on pushes tomain. After deploying, it waits untilhttps://go.daytona.com/sdk/v2?go-get=1serves the expected tag.docs/RELEASING.mdhad the wrong branch for the Pages deploy and now describes the new setup.
The 0.x Go modules keep github.com/daytona/clients/... and never read this site, so they are unaffected.
Merge together with #687, which removes the 0.x copy of the workflow from release/v0. Otherwise the next push to release/v0 redeploys the site with the wrong prefix. The github-pages environment already allows main.