mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 13:10:24 +08:00 
			
		
		
		
	编译proto文件时捕捉错误提示
This commit is contained in:
		@@ -4,6 +4,10 @@ echo "starting ..."
 | 
			
		||||
 | 
			
		||||
#rm -f ../pkg/rpc/pb/*.pb.go
 | 
			
		||||
protoc --go_out=../pkg/rpc --proto_path=../pkg/rpc/protos  ../pkg/rpc/protos/*.proto
 | 
			
		||||
RESULT=$?
 | 
			
		||||
if [ "${RESULT}" != "0" ]; then
 | 
			
		||||
	exit
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
protoc --go-grpc_out=../pkg/rpc --go-grpc_opt=require_unimplemented_servers=false --proto_path=../pkg/rpc/protos  ../pkg/rpc/protos/*.proto
 | 
			
		||||
RESULT=$?
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user