diff --git a/build/build.sh b/build/build.sh index 6a97731374..e80bccbf8d 100755 --- a/build/build.sh +++ b/build/build.sh @@ -17,7 +17,6 @@ set -e GO_FLAGS=${GO_FLAGS:-"-tags netgo"} # Extra go flags to use in the build. -GO_CMD=${GO_CMD:-"install"} BUILD_USER=${BUILD_USER:-"${USER}@${HOSTNAME}"} BUILD_DATE=${BUILD_DATE:-$( date +%Y%m%d-%H:%M:%S )} VERBOSE=${VERBOSE:-} @@ -50,6 +49,6 @@ if [ -n "$VERBOSE" ]; then echo "Building with -ldflags $ldflags" fi -GOBIN=$PWD go "$GO_CMD" ${GO_FLAGS} -ldflags "${ldflags}" "${repo_path}" +GOBIN=$PWD go build ${GO_FLAGS} -ldflags "${ldflags}" "${repo_path}" exit 0 diff --git a/build/release.sh b/build/release.sh index 897476aa1c..96348a59ca 100755 --- a/build/release.sh +++ b/build/release.sh @@ -35,7 +35,6 @@ fi # Build the release. export BUILD_USER="$git_user" export BUILD_DATE=$( date +%Y%m%d ) # Release date is only to day-granularity -export GO_CMD="build" # Don't use cached build objects for releases. export VERBOSE=true build/build.sh