milvus/scripts/update_api_version.sh
SimFG a85e44d169
Support the RELEASE param to update the milvus/api version dynamically (#19656)
Signed-off-by: SimFG <bang.fu@zilliz.com>

Signed-off-by: SimFG <bang.fu@zilliz.com>
2022-10-09 14:28:59 +08:00

16 lines
317 B
Bash
Executable File

#!/usr/bin/env bash
function line()
{
echo "----------------------------"
}
line
echo "Get the latest commitID"
commitID=`git rev-parse --short HEAD`
echo $commitID
line
echo "Update the milvus/api version"
go mod edit -dropreplace=github.com/milvus-io/milvus/api
go get github.com/milvus-io/milvus/api@$commitID