gometa
Go import paths that do not have to follow your Git host.
If you publish Go modules under your own domain, you do not want to change every import path when a repository moves. gometa is a small web service that answers Go import requests and points them to the actual Git host: the import path stays stable even if the host changes. This turns go.example.org/team/project into a pointer to the matching Git repository.
An import path that stays.
- Stable import paths. The path contains your domain instead of the host’s. The target host is set when the service starts (
-root); users of your modules do not have to change their imports when a repository moves. - Fits the Go toolchain. For
?go-get=1, gometa returns thego-importandgo-sourcemeta tags following the VCS-Find protocol (Git). When a person opens the address in a browser, the service redirects to the documentation at pkg.go.dev. - Easy to run. gometa is a single Go program: standalone with HTTP/HTTPS or behind your web server or reverse proxy. An example systemd unit and a configuration file are included;
-updatelets the program update itself.
For developers and teams who publish Go modules under their own domain and want to stay independent of their Git host.
Open source (Apache-2.0), version 0.x. The source code is public. The latest published version is 0.7.3 (Linux binary for amd64 with signature file); for other platforms build it yourself with go install. We run gometa ourselves for go.schlittermann.de. Today there is one fixed target host per service, Git only; according to the README, the path form schlittermann.de/go/<package> is untested. Planned, not implemented yet (no schedule): a configuration with custom mappings (per the README, once there is demand) and emitting the final Git host rather than a redirecting host in the meta tags (open ticket).
Set up gometa for your domain.
Would you like to offer your Go modules under your own domain or adapt gometa to your environment? Describe your infrastructure – we will discuss setup and operation with you.
News
Status: the only published releases are 0.2 and v0.7.3; other versions exist only as git tags.
- — Release v0.7.3
- v0.7.3: maintenance release with updated dependencies. The release contains a Linux binary (amd64) with signature file.
- — Development milestone (not a release)
- Requests without
?go-get=1now redirect browsers to the documentation at pkg.go.dev; the responses are covered by tests. - — Release 0.2
- 0.2: first published release. It works, needs no elaborate configuration and serves exactly one target.