vengor

Vengor is a Go vendored archive generator.



API description

This service is intended to be used through automation.

GET /source/<path:version_query>
GET /source?version_query=
Redirects the caller to the source of the version query requested.
GET /vendor/<path:version_query>
GET /vendor?version_query=[&path_prefix=][&source_hash=]
Creates (and caches) a vendored archive. Returns a tar archive.
GET /modcache/<path:version_query>
GET /modcache?version_query=[&path_prefix=][&source_hash=]
Creates (and caches) a mod cache suitable for use in GOMODCACHE. This is useful as it can be verified against external source archives with their own go.sum files via go mod verify. Returns a tar archive.
version_query
Go Version query path. Must contain a version as well as the module name.
Mandatory.
Example: git.sr.ht/~arsen/irc-discord-bridgebot@v0.0.0-20211204195927-630c9f0d9780
path_prefix
Component to prefix paths inside the vendored tar with.
Optional.
Defaults to {name}-{version} or go-mod for vendored archives and modcaches respectively. Example: irc-discord-bridgebot-v0.0.0-20211204195927-630c9f0d9780
source_hash
BLAKE2b hash of the source archive. If not matched, will result in a 412 Precondition Failed.
Can be computed via openssl blake2b512.
Optional.
Example: 44ca958aa8...bf8b11b873