Skip to content

Commit

Permalink
remove unused proto dependency on generate (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
fschoell authored Dec 12, 2023
1 parent 72f7699 commit e5800f8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
6 changes: 2 additions & 4 deletions types/pb/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd ../.. && pwd )"

# Protobuf definitions
PROTO=${1:-"$ROOT/../proto"}
PROTO_ANTELOPE=${2:-"$ROOT/proto"}

function main() {
Expand All @@ -28,7 +27,6 @@ function main() {
generate "sf/antelope/type/v1/type.proto"

echo "generate.sh - `date` - `whoami`" > ./last_generate.txt
echo "streamingfast/proto revision: `GIT_DIR=$PROTO/.git git rev-parse HEAD`" >> ./last_generate.txt
echo "streamingfast/firehose-antelope/proto revision: `GIT_DIR=$ROOT/.git git log -n 1 --pretty=format:%h -- proto`" >> ./last_generate.txt
}

Expand All @@ -42,7 +40,7 @@ function generate() {
fi

for file in "$@"; do
protoc -I$PROTO -I$PROTO_ANTELOPE \
protoc -I$PROTO_ANTELOPE \
--go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative,require_unimplemented_servers=false \
$base$file
Expand Down Expand Up @@ -72,4 +70,4 @@ function checks() {
fi
}

main "$@"
main "$@"
5 changes: 2 additions & 3 deletions types/pb/last_generate.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
generate.sh - Tue Jan 31 14:24:11 CET 2023 - work
streamingfast/proto revision: 086dc4643579c0102b2a198bc40b89854dc50111
streamingfast/firehose-antelope/proto revision: c023c3e
generate.sh - Tue Dec 12 16:34:49 CET 2023 - work
streamingfast/firehose-antelope/proto revision: 9565470
4 changes: 2 additions & 2 deletions types/pb/sf/antelope/type/v1/type.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e5800f8

Please sign in to comment.