From 8121b9c33c284ba9c2dee77884d57d1920b52a8d Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Tue, 23 Aug 2016 21:44:50 +0200 Subject: [PATCH] Set a proper version number --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 3385594..9b8a791 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "os" "github.com/Sirupsen/logrus" @@ -8,14 +9,14 @@ import ( "github.com/urfave/cli" ) -var version string // build number set at compile-time +var build = "0" // build number set at compile-time func main() { app := cli.NewApp() app.Name = "docker plugin" app.Usage = "docker plugin" app.Action = run - app.Version = version + app.Version = fmt.Sprintf("1.0.%s", build) app.Flags = []cli.Flag{ cli.BoolFlag{ Name: "dry-run",