Move VERSION to a dedicated file to facilitate automated builds and releases
Upstream-commit: 9087ef9a770789e6987cd1ca4396d6b20a446724 Component: engine
This commit is contained in:
committed by
Jérôme Petazzoni
parent
4ccbc259fe
commit
0bebe41d5e
1
components/engine/VERSION
Normal file
1
components/engine/VERSION
Normal file
@ -0,0 +1 @@
|
||||
0.5.1-dev
|
||||
@ -27,10 +27,9 @@ import (
|
||||
"unicode"
|
||||
)
|
||||
|
||||
const VERSION = "0.5.3-dev"
|
||||
|
||||
var (
|
||||
GITCOMMIT string
|
||||
VERSION string
|
||||
)
|
||||
|
||||
func (cli *DockerCli) getMethod(name string) (reflect.Method, bool) {
|
||||
|
||||
@ -16,6 +16,7 @@ import (
|
||||
|
||||
var (
|
||||
GITCOMMIT string
|
||||
VERSION string
|
||||
)
|
||||
|
||||
func main() {
|
||||
@ -52,6 +53,7 @@ func main() {
|
||||
os.Setenv("DEBUG", "1")
|
||||
}
|
||||
docker.GITCOMMIT = GITCOMMIT
|
||||
docker.VERSION = VERSION
|
||||
if *flDaemon {
|
||||
if flag.NArg() != 0 {
|
||||
flag.Usage()
|
||||
|
||||
Reference in New Issue
Block a user