Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unused proto dependency on generate #106

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.