[demos] Specify grpc_pingpong package version for go 1.18

This commit is contained in:
Zheng, Qi 2023-10-11 14:55:18 +08:00 committed by volcano
parent 038e001bbc
commit cd7a8cbc57
2 changed files with 11 additions and 6 deletions

@ -1,9 +1,16 @@
module grpc_pingpong module grpc_pingpong
go 1.13 go 1.18
require ( require (
golang.org/x/net v0.0.0-20190311183353-d8887717615a golang.org/x/net v0.17.0
google.golang.org/grpc v1.34.0-dev google.golang.org/grpc v1.58.2
google.golang.org/protobuf v1.25.0 // indirect )
require (
github.com/golang/protobuf v1.5.3 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect
google.golang.org/protobuf v1.31.0 // indirect
) )

@ -31,8 +31,6 @@ done
GOVERSION=`occlum-go version|awk -F ' ' '{printf $3}'` GOVERSION=`occlum-go version|awk -F ' ' '{printf $3}'`
export GO111MODULE=on export GO111MODULE=on
if [[ $GOVERSION != 'go1.16.3' ]];then if [[ $GOVERSION != 'go1.16.3' ]];then
rm -f go.mod
occlum-go mod init grpc_pingpong
occlum-go mod tidy occlum-go mod tidy
fi fi
# update PATH so that the protoc compiler can find the plugin: # update PATH so that the protoc compiler can find the plugin: