Skip to content

Commit 2f58786

Browse files
committed
Bump version 0.0.1-dev and Add Driver version infomation
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent d074e2e commit 2f58786

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

version/version.go

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package version
2+
3+
var (
4+
// ConfigVersion dictates which version of the config.json format is
5+
// used. It needs to be bumped if there is a breaking change, and
6+
// therefore migration, introduced to the config file format.
7+
ConfigVersion int = 1
8+
9+
// Version should be updated by hand at each release
10+
Version string = "0.0.1-dev"
11+
12+
// GitCommit will be overwritten automatically by the build system
13+
GitCommit string = "HEAD"
14+
)

xhyve.go

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"github.com/docker/machine/libmachine/mcnutils"
1818
"github.com/docker/machine/libmachine/ssh"
1919
"github.com/docker/machine/libmachine/state"
20+
"github.com/zchee/docker-machine-xhyve/version"
2021
"github.com/zchee/docker-machine-xhyve/vmnet"
2122
"libguestfs.org/guestfs"
2223
)
@@ -166,6 +167,11 @@ func (d *Driver) GetState() (state.State, error) { // TODO
166167

167168
// Check VirtualBox version
168169
func (d *Driver) PreCreateCheck() error {
170+
//TODO:libmachine PLEASE output driver version API!
171+
v := version.Version
172+
c := version.GitCommit
173+
log.Debugf("===== Docker Machine %s Driver Version %s (%s) =====\n", d.DriverName(), v, c)
174+
169175
ver, err := vboxVersionDetect()
170176
if err != nil {
171177
return fmt.Errorf("Error detecting VBox version: %s", err)

0 commit comments

Comments
 (0)