From dacf8b305d4b8fb626aa22ca61789a48006de6c4 Mon Sep 17 00:00:00 2001 From: congqixia Date: Sat, 10 Jun 2023 19:30:36 +0800 Subject: [PATCH] Fix list milvus-proto go.mod when try to parse API_VERSION (#24788) Signed-off-by: Congqi Xia --- scripts/download_milvus_proto.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/download_milvus_proto.sh b/scripts/download_milvus_proto.sh index e17eea554..28919e9c9 100755 --- a/scripts/download_milvus_proto.sh +++ b/scripts/download_milvus_proto.sh @@ -2,13 +2,13 @@ SCRIPTS_DIR=$(dirname "$0") THIRD_PARTY_DIR=$SCRIPTS_DIR/../cmake_build/thirdparty +API_VERSION=$(go list -m github.com/milvus-io/milvus-proto/go-api/v2 | awk -F' ' '{print $2}') if [ ! -d "$THIRD_PARTY_DIR/milvus-proto" ]; then mkdir -p $THIRD_PARTY_DIR pushd $THIRD_PARTY_DIR git clone https://github.com/milvus-io/milvus-proto.git cd milvus-proto - API_VERSION=$(go list -m github.com/milvus-io/milvus-proto/go-api/v2 | awk -F' ' '{print $2}') # try tagged version first COMMIT_ID=$(git ls-remote https://github.com/milvus-io/milvus-proto.git refs/tags/${API_VERSION} | cut -f 1) if [[ -z $COMMIT_ID ]]; then -- GitLab