Description
Via meta tags, we can define our own module proxy that go mod download
should use. This is interesting to us because we're not using semver; we're stuck with pseudo versions. If someone runs go get honnef.co/go/tools/cmd/[email protected]
, then this will be converted into a pseudo-version of the format v0.0.0-<timestamp>-<commit sha>
. If the user later ran go get -u
, they'd be bumped to the latest commit on master. Furthermore, a go get
with no version specified would also fetch from master. If we ran our own proxy, then we could synthesize our own list of versions, consisting solely of pseudo-versions matching our releases. As long as our list isn't empty, go get [-u]
will consult the list and choose the latest element on that list.
The obvious downside is that we would have to maintain more infrastructure.