From a93c267ab47e450b522cb38d652a14daabc4deb5 Mon Sep 17 00:00:00 2001 From: Jonathan Brown Date: Thu, 27 Aug 2015 05:24:36 +0700 Subject: [PATCH] Fix warning on go 1.5 link: warning: option -X main.gitCommit 6ec13e7e2bab1ebdb580819a48629055bbbb5fb3 may not work in future releases; use -X main.gitCommit=6ec13e7e2bab1ebdb580819a48629055bbbb5fb3 --- build/ldflags.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/ldflags.sh b/build/ldflags.sh index 9e17ca4986..25afdb2d15 100755 --- a/build/ldflags.sh +++ b/build/ldflags.sh @@ -9,5 +9,5 @@ fi # set gitCommit when running from a Git checkout. if [ -f ".git/HEAD" ]; then - echo "-ldflags '-X main.gitCommit $(git rev-parse HEAD)'" + echo "-ldflags '-X main.gitCommit=$(git rev-parse HEAD)'" fi