mirror of
https://github.com/status-im/consul.git
synced 2025-02-23 02:48:19 +00:00
Fixes up some stale BUILD_TAGS references in the scripts.
This commit is contained in:
parent
15e7247131
commit
098da8eb49
@ -43,7 +43,7 @@ echo "==> Building..."
|
|||||||
-osarch="!darwin/arm" \
|
-osarch="!darwin/arm" \
|
||||||
-ldflags "-X ${GIT_IMPORT}.GitCommit='${GIT_COMMIT}${GIT_DIRTY}' -X ${GIT_IMPORT}.GitDescribe='${GIT_DESCRIBE}'" \
|
-ldflags "-X ${GIT_IMPORT}.GitCommit='${GIT_COMMIT}${GIT_DIRTY}' -X ${GIT_IMPORT}.GitDescribe='${GIT_DESCRIBE}'" \
|
||||||
-output "pkg/{{.OS}}_{{.Arch}}/consul" \
|
-output "pkg/{{.OS}}_{{.Arch}}/consul" \
|
||||||
-tags="${BUILD_TAGS}" \
|
-tags="${GOTAGS}" \
|
||||||
.
|
.
|
||||||
|
|
||||||
# Move all the compiled things to the $GOPATH/bin
|
# Move all the compiled things to the $GOPATH/bin
|
||||||
|
@ -5,7 +5,7 @@ set -e
|
|||||||
# We process the files in the same order Go does to find the last matching tag.
|
# We process the files in the same order Go does to find the last matching tag.
|
||||||
if [ -z $VERSION ]; then
|
if [ -z $VERSION ]; then
|
||||||
for file in $(ls version/version_*.go | sort); do
|
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
|
if grep -q "// +build $tag" $file; then
|
||||||
VERSION=$(awk -F\" '/Version =/ { print $2; exit }' <$file)
|
VERSION=$(awk -F\" '/Version =/ { print $2; exit }' <$file)
|
||||||
fi
|
fi
|
||||||
@ -36,7 +36,7 @@ fi
|
|||||||
# Do a hermetic build inside a Docker container.
|
# Do a hermetic build inside a Docker container.
|
||||||
if [ -z $NOBUILD ]; then
|
if [ -z $NOBUILD ]; then
|
||||||
docker build -t hashicorp/consul-builder scripts/consul-builder/
|
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
|
fi
|
||||||
|
|
||||||
# Zip all the files.
|
# Zip all the files.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user