Browse Source

remove -u for go get in sync-dtmcli

pull/85/head
yedf2 4 years ago
parent
commit
253014cf37
  1. 6
      helper/sync-dtmcli.sh

6
helper/sync-dtmcli.sh

@ -37,7 +37,7 @@ git push --tags
cd ../dtmgrpc
rm -rf *.go dtmgimp
cp -r ../dtm/dtmgrpc/* ./
go get -u github.com/yedf/dtmcli@$ver
go get github.com/yedf/dtmcli@$ver
sed -i '' -e 's/yedf\/dtm\//yedf\//g' *.go
sed -i '' -e 's/yedf\/dtm\//yedf\//g' dtmgimp/*.go dtmgimp/*.proto
rm -rf *_test.go
@ -50,8 +50,8 @@ git tag $ver
git push --tags
cd ../dtmgrpc-go-sample
go get -u github.com/yedf/dtmcli@$ver
go get -u github.com/yedf/dtmgrpc@$ver
go get github.com/yedf/dtmcli@$ver
go get github.com/yedf/dtmgrpc@$ver
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative busi/*.proto || exit 1
go build || exit 1
git add .

Loading…
Cancel
Save