From 250348fa96cb0a50b3ddb56fb96eaff9910650c2 Mon Sep 17 00:00:00 2001 From: Yellow Shine Date: Mon, 4 Nov 2024 17:00:32 +0800 Subject: [PATCH] enhance: allow to change conan repo url Signed-off-by: Yellow Shine --- scripts/3rdparty_build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/3rdparty_build.sh b/scripts/3rdparty_build.sh index 2c894ba972c63..28ea0632c8ca0 100644 --- a/scripts/3rdparty_build.sh +++ b/scripts/3rdparty_build.sh @@ -52,9 +52,14 @@ pushd ${BUILD_OUTPUT_DIR} export CONAN_REVISIONS_ENABLED=1 export CXXFLAGS="-Wno-error=address -Wno-error=deprecated-declarations" export CFLAGS="-Wno-error=address -Wno-error=deprecated-declarations" + +# Determine the Conan remote URL, using the environment variable if set, otherwise defaulting +CONAN_REMOTE_URL="${CONAN_REMOTE_URL:-https://milvus01.jfrog.io/artifactory/api/conan/default-conan-local}" + if [[ ! `conan remote list` == *default-conan-local* ]]; then - conan remote add default-conan-local https://milvus01.jfrog.io/artifactory/api/conan/default-conan-local + conan remote add default-conan-local $CONAN_REMOTE_URL fi + unameOut="$(uname -s)" case "${unameOut}" in Darwin*)