diff --git a/htrace-htraced/go/gobuild.sh b/htrace-htraced/go/gobuild.sh index 4728047..c3fb545 100755 --- a/htrace-htraced/go/gobuild.sh +++ b/htrace-htraced/go/gobuild.sh @@ -76,6 +76,7 @@ For other distributions and operating systems use your packaging tool. EOF exit 1 fi +echo "using $(go version)" # Check for libleveldb.so if [ -n "$LEVELDB_PREFIX" ]; then @@ -131,7 +132,7 @@ install) # Inject the release and git version into the htraced ldflags. echo "Building ${RELEASE_VERSION} [${GIT_VERSION}]" - FLAGS="-X main.RELEASE_VERSION=${RELEASE_VERSION} -X main.GIT_VERSION=${GIT_VERSION}" + FLAGS="-X main.RELEASE_VERSION ${RELEASE_VERSION} -X main.GIT_VERSION ${GIT_VERSION}" go install ${TAGS} -ldflags "${FLAGS}" -v htrace/... "$@" \ || die "go install failed." # Set the RPATH to make bundling leveldb and snappy easier.