From 4b1cd33947248ccf2a15119e2d91a1f30d77c0b3 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 3 Jun 2016 13:18:07 +0200 Subject: [PATCH] Bake in the version when using gobuilder --- .gobuilder.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .gobuilder.yml diff --git a/.gobuilder.yml b/.gobuilder.yml new file mode 100644 index 0000000..2777a30 --- /dev/null +++ b/.gobuilder.yml @@ -0,0 +1,4 @@ +build_matrix: + general: + ldflags: + - "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)"