From b71b5dd0d4f471e02e8709af409fc5d08e741807 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 29 Oct 2015 22:04:23 +0100 Subject: [PATCH] Use go generate for dockerversion Signed-off-by: Vincent Demeester --- generate.go | 3 +++ script/dockerversion | 12 ++++++++++++ .../docker/autogen/dockerversion/dockerversion.go | 12 ------------ 3 files changed, 15 insertions(+), 12 deletions(-) create mode 100644 script/dockerversion delete mode 100644 vendor/github.com/docker/docker/autogen/dockerversion/dockerversion.go diff --git a/generate.go b/generate.go index f7b6e4ec3..140d6b706 100644 --- a/generate.go +++ b/generate.go @@ -6,4 +6,7 @@ Copyright //go:generate rm -vf gen.go //go:generate go-bindata -o gen.go static/... templates/... +//go:generate mkdir -p vendor/github.com/docker/docker/autogen/dockerversion +//go:generate cp script/dockerversion vendor/github.com/docker/docker/autogen/dockerversion/dockerversion.go + package main diff --git a/script/dockerversion b/script/dockerversion new file mode 100644 index 000000000..d2ea51254 --- /dev/null +++ b/script/dockerversion @@ -0,0 +1,12 @@ +// AUTOGENERATED FILE; see /go/src/github.com/docker/docker/hack/make/.go-autogen +package dockerversion + +var ( + GITCOMMIT string = "traefik-import" + VERSION string = "traefik-import" + BUILDTIME string = "traefik-import" + + IAMSTATIC string = "traefik-import" + INITSHA1 string = "traefik-import" + INITPATH string = "traefik-import" +) diff --git a/vendor/github.com/docker/docker/autogen/dockerversion/dockerversion.go b/vendor/github.com/docker/docker/autogen/dockerversion/dockerversion.go deleted file mode 100644 index 1c2d32547..000000000 --- a/vendor/github.com/docker/docker/autogen/dockerversion/dockerversion.go +++ /dev/null @@ -1,12 +0,0 @@ -// AUTOGENERATED FILE; see ./hack/make/.go-autogen -package dockerversion - -var ( - GITCOMMIT string = "" - VERSION string = "" - BUILDTIME string = "" - - IAMSTATIC string = "true" - INITSHA1 string = "" - INITPATH string = "" -)