Skip to content

Commit

Permalink
Adding debugs in netplugin/scripts/build.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Vikram Hosakote <vhosakot@cisco.com>
  • Loading branch information
vhosakot committed Oct 20, 2017
1 parent 7ff78e8 commit aab6b01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -euxo pipefail

BUILD_TIME=$(date -u +%m-%d-%Y.%H-%M-%S.UTC)
VERSION=$(cat version/CURRENT_VERSION | tr -d '\n')
PKG_NAME=github.com/contiv/netplugin/version
Expand All @@ -19,7 +21,7 @@ GIT_COMMIT=$(./scripts/getGitCommit.sh)

echo $BUILD_VERSION >$VERSION_FILE

GOGC=1500 go install \
GOGC=1500 go install -v \
-ldflags "-X $PKG_NAME.version=$BUILD_VERSION \
-X $PKG_NAME.buildTime=$BUILD_TIME \
-X $PKG_NAME.gitCommit=$GIT_COMMIT \
Expand Down

0 comments on commit aab6b01

Please sign in to comment.