Rename binary to threshold and update build/release packaging
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
306960d24b
commit
5f5d35b9ff
23 files changed
+189
-258
No files matched your search
+4
-4
@@ -17,7 +17,7 @@ DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
|
||||
cd "$DIR"
|
||||
|
||||
# Set build tags
|
||||
BUILD_TAGS="${BUILD_TAGS:-"boundary"}"
|
||||
BUILD_TAGS="${BUILD_TAGS:-"threshold"}"
|
||||
echo "==> Build tags: ${BUILD_TAGS}"
|
||||
|
||||
# Get the git commit
|
||||
@@ -61,7 +61,7 @@ fi
|
||||
BASE_PRODUCT_VERSION=${BASE_PRODUCT_VERSION:=$(cat version/VERSION)}
|
||||
|
||||
# Declare binary paths!
|
||||
BINARY_NAME="boundary${BINARY_SUFFIX}"
|
||||
BINARY_NAME="threshold${BINARY_SUFFIX}"
|
||||
BIN_PATH=${BIN_PATH:=bin/${BINARY_NAME}}
|
||||
BIN_PARENT_DIR="${BIN_PATH%/*}"
|
||||
BIN_PARENT_DIR="${BIN_PARENT_DIR##*/}"
|
||||
@@ -85,10 +85,10 @@ ${GO_CMD} build \
|
||||
-X 'github.com/hashicorp/boundary/version.BuildDate=$BUILD_DATE'
|
||||
" \
|
||||
-o "$BIN_PATH" \
|
||||
./cmd/boundary
|
||||
./cmd/threshold
|
||||
|
||||
# Copy binary into gopath if desired
|
||||
if [ "${BOUNDARY_INSTALL_BINARY}x" != "x" ]; then
|
||||
if [ "${THRESHOLD_INSTALL_BINARY:-${BOUNDARY_INSTALL_BINARY:-}}x" != "x" ]; then
|
||||
echo "==> Moving binary into GOPATH/bin..."
|
||||
mv -f "${BIN_PATH}" "${GOPATH}/bin/"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user