distribution/version/version.go
Cory Snider a74cacff04 version: export getter functions
Future-proof the version package's exported interface by only making the
data available through getter functions. This affords us the flexibility
to e.g. implement them in terms of "runtime/debug".ReadBuildInfo() in
the future.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2023-12-19 13:02:44 -05:00

15 lines
622 B
Go

package version
// mainpkg is the overall, canonical project import path under which the
// package was built.
var mainpkg = "github.com/distribution/distribution/v3"
// version indicates which version of the binary is running. This is set to
// the latest release tag by hand, always suffixed by "+unknown". During
// build, it will be replaced by the actual version. The value here will be
// used if the registry is run after a go get based install.
var version = "v3.0.0-alpha.1.m+unknown"
// revision is filled with the VCS (e.g. git) revision being used to build
// the program at linking time.
var revision = ""