mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
e10d21ef90
Signed-off-by: SimFG <bang.fu@zilliz.com> Signed-off-by: SimFG <bang.fu@zilliz.com>
24 lines
615 B
Bash
Executable File
24 lines
615 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
function line()
|
|
{
|
|
echo "----------------------------"
|
|
}
|
|
|
|
line
|
|
echo "Update the milvus-proto/api version"
|
|
commitID=$(git ls-remote https://github.com/milvus-io/milvus-proto.git refs/heads/master | cut -f 1)
|
|
go get github.com/milvus-io/milvus-proto/go-api@$commitID
|
|
|
|
SCRIPTS_DIR=$(dirname "$0")
|
|
EXAMPLE_DIR=$SCRIPTS_DIR/../cmake_build/thirdparty/protobuf/protobuf-src/examples
|
|
rm -rf $EXAMPLE_DIR
|
|
go mod tidy
|
|
|
|
line echo "Update the milvus-proto repo"
|
|
THIRD_PARTY_DIR=$SCRIPTS_DIR/../cmake_build/thirdparty
|
|
|
|
pushd $THIRD_PARTY_DIR/milvus-proto
|
|
git checkout master
|
|
git pull origin master
|
|
popd |