From 1b501619b7826892155625b30a8548117d883ce3 Mon Sep 17 00:00:00 2001 From: Tuna Date: Thu, 11 Aug 2016 10:10:20 +0700 Subject: [PATCH] close #64 --- script/binary | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/binary b/script/binary index 3d11c20d..9fabf1af 100755 --- a/script/binary +++ b/script/binary @@ -13,6 +13,8 @@ else OS_ARCH_ARG=($2) fi +GITCOMMIT=$(git rev-parse --short HEAD) + # Get rid of existing binaries rm -f kompose* @@ -20,5 +22,5 @@ rm -f kompose* gox "${OS_PLATFORM_ARG[@]}" "${OS_ARCH_ARG[@]}" \ -output="bundles/kompose_{{.OS}}-{{.Arch}}/kompose" \ -tags experimental \ + -ldflags="-w -X github.com/skippbox/kompose/version.GITCOMMIT=${GITCOMMIT}" \ ./cli/main -