Skip to content

Commit

Permalink
Fixes up some stale BUILD_TAGS references in the scripts.
Browse files Browse the repository at this point in the history
slackpad committed Mar 24, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 15e7247 commit 098da8e
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ echo "==> Building..."
-osarch="!darwin/arm" \
-ldflags "-X ${GIT_IMPORT}.GitCommit='${GIT_COMMIT}${GIT_DIRTY}' -X ${GIT_IMPORT}.GitDescribe='${GIT_DESCRIBE}'" \
-output "pkg/{{.OS}}_{{.Arch}}/consul" \
-tags="${BUILD_TAGS}" \
-tags="${GOTAGS}" \
.

# Move all the compiled things to the $GOPATH/bin
4 changes: 2 additions & 2 deletions scripts/dist.sh
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ set -e
# We process the files in the same order Go does to find the last matching tag.
if [ -z $VERSION ]; then
for file in $(ls version/version_*.go | sort); do
for tag in "$BUILD_TAGS"; do
for tag in "$GOTAGS"; do
if grep -q "// +build $tag" $file; then
VERSION=$(awk -F\" '/Version =/ { print $2; exit }' <$file)
fi
@@ -36,7 +36,7 @@ fi
# Do a hermetic build inside a Docker container.
if [ -z $NOBUILD ]; then
docker build -t hashicorp/consul-builder scripts/consul-builder/
docker run --rm -e "BUILD_TAGS=$BUILD_TAGS" -v "$(pwd)":/gopath/src/github.com/hashicorp/consul hashicorp/consul-builder ./scripts/dist_build.sh
docker run --rm -e "GOTAGS=$GOTAGS" -v "$(pwd)":/gopath/src/github.com/hashicorp/consul hashicorp/consul-builder ./scripts/dist_build.sh
fi

# Zip all the files.

0 comments on commit 098da8e

Please sign in to comment.