Skip to content

Commit 7c567df

Browse files
authored
Fetch C++ client official release (#25)
Since it's now available, fetch the official binaries for the CPP client 3.0.0
1 parent 3e37e44 commit 7c567df

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

build-support/install-cpp-client.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ export $(cat /etc/*-release | grep "^ID=")
3333
cd /tmp
3434

3535
# Fetch the client binaries
36-
## TODO: Fetch from official release once it's available
37-
BASE_URL=https://dist.apache.org/repos/dist/dev/pulsar/pulsar-client-cpp-${CPP_CLIENT_VERSION}-candidate-2
36+
BASE_URL=https://dist.apache.org/repos/dist/release/pulsar/pulsar-client-cpp-${CPP_CLIENT_VERSION}
3837

3938
UNAME_ARCH=$(uname -m)
4039
if [ $UNAME_ARCH == 'aarch64' ]; then
@@ -49,8 +48,8 @@ if [ $ID == 'ubuntu' ]; then
4948
$SUDO apt install -y /tmp/*.deb
5049

5150
elif [ $ID == 'alpine' ]; then
52-
curl -L -O ${BASE_URL}/apk-${PLATFORM}/apache-pulsar-client-${CPP_CLIENT_VERSION}-r0.apk
53-
curl -L -O ${BASE_URL}/apk-${PLATFORM}/apache-pulsar-client-dev-${CPP_CLIENT_VERSION}-r0.apk
51+
curl -L -O ${BASE_URL}/apk-${PLATFORM}/${UNAME_ARCH}/apache-pulsar-client-${CPP_CLIENT_VERSION}-r0.apk
52+
curl -L -O ${BASE_URL}/apk-${PLATFORM}/${UNAME_ARCH}/apache-pulsar-client-dev-${CPP_CLIENT_VERSION}-r0.apk
5453
$SUDO apk add --allow-untrusted /tmp/*.apk
5554

5655
elif [ $ID == '"centos"' ]; then

pkg/mac/build-pulsar-cpp.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ DEPS_PREFIX=${CACHE_DIR_DEPS}/install
3737

3838
###############################################################################
3939

40-
## TODO: Fetch from official release
41-
curl -O -L https://dist.apache.org/repos/dist/dev/pulsar/pulsar-client-cpp-${PULSAR_CPP_VERSION}-candidate-2/apache-pulsar-client-cpp-${PULSAR_CPP_VERSION}.tar.gz
40+
curl -O -L https://dist.apache.org/repos/dist/release/pulsar/pulsar-client-cpp-${PULSAR_CPP_VERSION}/apache-pulsar-client-cpp-${PULSAR_CPP_VERSION}.tar.gz
4241
tar xfz apache-pulsar-client-cpp-${PULSAR_CPP_VERSION}.tar.gz
4342

4443
if [ ! -f apache-pulsar-client-cpp-${PULSAR_CPP_VERSION}/.done ]; then

0 commit comments

Comments
 (0)