The host name can leak into the API.
A Go module path is its canonical name. It prefixes every package path in that module. Many projects use the repository URL as that name because popular hosts already answer Go's discovery request.[2]
That convenience creates a migration cost. Iain Cambridge argues that a team which publishes github.com/company/tool has placed its hosting choice inside every consumer's imports. His proposed fix is a stable domain such as go.example.com/tool that points the Go command to the current repository.[1]
Keep the public address stable. Move the repository behind it.
The trick is ordinary HTTP.
When a module path has no version control qualifier, the Go command requests the path with ?go-get=1. The response must put a go-import meta tag near the start of the document. That tag names the root path, version control system, and repository URL.[2]
The garage checked Cambridge's live example on September 27. go.iain.rocks/boneclone?go-get=1 returned a meta tag that maps the stable path to a public GitHub repository. A normal browser request redirected to that repository. GitHub's API confirmed that the repository exists and is public.[3]
You have moved the dependency.
A custom path removes one hosting company from the import statement. It adds a domain, TLS certificate, HTTP route, and metadata document to the module's release machinery. Lose that route and a direct lookup cannot find the repository.
The route also cannot repair a bad migration. The destination still needs the same module declaration, version tags, and accessible commits. Existing proxy and module caches may hide a broken direct path during a shallow test.
Cut over with a consumer.
Test the metadata response as data. Confirm the exact root path and repository URL. Then fetch a released version in a clean module with the proxy path you expect consumers to use. Repeat with direct resolution if direct access is part of the support contract.
The transfer switch below creates that test card. It does not edit DNS, move a repository, or prove that any version resolves. Completion means the four requirements were selected. The named evidence fields still need real output.