TL;DR
In a September 27, 2026 post, developer Iain Cambridge urged Go teams to use custom domains for package import paths so they can change Git hosts without changing those paths. He described a company that maintained repositories on GitLab, GitHub and Azure DevOps because moving code was too burdensome, but provided no independent confirmation or cost figures.
Developer Iain Cambridge published a September 27, 2026 post urging Go teams to use custom domains for package import paths, arguing that this lets maintainers change Git hosting providers without forcing users to update imports. The recommendation addresses a potential source of operational cost and friction for teams whose Go packages use a hosting provider’s domain directly.
Get the latest gadgets delivered free with Prime
- Fast, free delivery on millions of items
- Prime Video, Amazon Music and more included
- Member-only deals all year
Go packages are commonly imported using a path that includes their hosting location, such as github.com/thetrueares/boneclone. Cambridge says that arrangement makes a package easy to locate and fetch, but ties its public import path to the current host. If a project moves to another provider, code and package consumers may need to adapt to the new location; projects that keep using the old path risk continuing to fetch from the previous host.
Cambridge recommends placing a team-controlled domain in the import path, with examples including go.iain.rocks, go.uber.org and go.mongodb.org. Go can use HTML metadata served at that domain to discover the repository location. The domain owner can then update that mapping if the repository moves, preserving the import path used by consumers.
The post includes sample Nginx and HTML configurations. In the example, requests from Go that include ?go-get=1 receive the discovery metadata, while ordinary browser visits are redirected to GitHub. Cambridge says he built Boneclone to replicate skeleton code across multiple Git hosting platforms, after seeing a company use three providers because changing code locations was too burdensome.
Stable Imports Across Git Hosts
A custom import domain can give a Go package a stable public address even when its repository moves. For teams that publish libraries or share internal modules across many services, that separation may reduce the number of code changes and coordination steps required during a hosting migration.
Cambridge says the company he observed kept code on GitLab, GitHub and Azure DevOps because it did not have time to move everything, and that maintaining three services cost money. The post does not name the company or give financial figures, so the example illustrates the author’s concern rather than establishing how widespread or costly the problem is. The broader point is that package naming choices can affect future infrastructure options.
Products Worth Considering

LG UltraGear 27-inch 4K UHD IPS Gaming Monitor, Dual Mode 180Hz/360Hz, 1ms, G-SYNC Compatible

Apple MacBook Air 15.3-inch Laptop with M5 chip, 16GB Unified Memory, 512GB SSD, 12MP Center Stage Camera, Touch ID, Wi‑Fi 7 – Sky Blue with

Jackery Explorer 2000 v2 Portable Power Station, 2042Wh, 2200W
As an affiliate, we earn on qualifying purchases.
How Go Finds a Package
Go import paths often combine a domain and repository path. When resolving a path on a custom domain, the Go tool can request a page with the go-get=1 query parameter and read a go-import metadata tag that identifies the version-control system and repository URL. The example in Cambridge’s post maps go.iain.rocks/boneclone to a GitHub repository.
That lookup approach allows the visible import path and the underlying Git host to differ. Cambridge’s setup also redirects human browser traffic to the repository while serving metadata to Go. His post offers configuration examples, but does not report a formal comparison of migration effort or describe testing across different hosting providers.
“The main problem with using your git hosting location is that your code is now coupled to a hosting provider.”
— Iain Cambridge
Scale of Migration Costs
The post does not identify the company Cambridge describes, quantify its hosting bills, or independently document how much work a migration would have required. It also does not establish how many Go teams use provider-specific paths or whether custom domains would be worthwhile for every project.
The sample configuration demonstrates one way to serve discovery metadata and redirect browser visitors, but Cambridge does not report a security review, reliability measurements or results from a provider migration using the setup. Those details remain unaddressed in the post.
Teams Weigh Domain Setup
Teams considering the approach can review Cambridge’s sample Nginx and HTML configuration and decide whether a domain they control fits their package distribution needs. The post does not announce a product launch or a scheduled follow-up; any adoption or migration plans by Go teams remain unknown.
Key Questions
What did Iain Cambridge recommend?
He recommended using a custom domain in Go import paths so a project can change Git hosting providers while keeping the path used by consumers.
How does Go discover the repository behind a custom import path?
The Go tool can request a page with ?go-get=1 and read a go-import metadata tag that points to the repository.
What company costs did Cambridge report?
Cambridge said a company he had seen used GitLab, GitHub and Azure DevOps because moving repositories was too burdensome, and said this cost money. He did not name the company or provide cost figures.
Does the post show that every Go project needs a custom domain?
No. Cambridge recommends the approach, especially for commercial teams, but the post does not compare costs or establish that it is necessary for every project.
Source: hn
