groupcache/proto.sh
William Bergeron-Drouin 6973935fd8
Update protos
2024-04-16 12:05:12 -04:00

17 lines
286 B
Bash
Executable File

#! /bin/sh
# Make sure the script fails fast.
set -e
set -u
set -x
PROTO_DIR=groupcachepb
protoc -I=$PROTO_DIR \
--go_out=$PROTO_DIR \
$PROTO_DIR/groupcache.proto
protoc -I=$PROTO_DIR \
--go_out=. \
$PROTO_DIR/example.proto && mv ./example.pb.go ./example_pb_test.go