mirror of https://github.com/milvus-io/milvus.git
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>pull/19632/head
parent
746e9ece5a
commit
a85e44d169
4
Makefile
4
Makefile
|
@ -97,6 +97,10 @@ print-build-info:
|
|||
@echo "Go Version: $(GO_VERSION)"
|
||||
|
||||
milvus: build-cpp print-build-info
|
||||
ifeq ($(RELEASE), TRUE)
|
||||
@echo "Update milvus/api version ..."
|
||||
@(env bash $(PWD)/scripts/update_api_version.sh)
|
||||
endif
|
||||
@echo "Building Milvus ..."
|
||||
@source $(PWD)/scripts/setenv.sh && \
|
||||
mkdir -p $(INSTALL_PATH) && go env -w CGO_ENABLED="1" && \
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
#!/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
|
Loading…
Reference in New Issue