mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Move docker version introspection to a sub-package.
This facilitates the refactoring of commands.go. Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
This commit is contained in:
11
dockerversion/dockerversion.go
Normal file
11
dockerversion/dockerversion.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package dockerversion
|
||||
|
||||
// FIXME: this should be embedded in the docker/docker.go,
|
||||
// but we can't because distro policy requires us to
|
||||
// package a separate dockerinit binary, and that binary needs
|
||||
// to know its version too.
|
||||
|
||||
var (
|
||||
GITCOMMIT string
|
||||
VERSION string
|
||||
)
|
||||
Reference in New Issue
Block a user