Files
trufflehog/scripts/gen_proto.sh
Cody Rose 781157ae36
Lint / golangci-lint (push) Waiting to run
Lint / semgrep (push) Waiting to run
Release / Release (push) Waiting to run
Scan for secrets / test (push) Waiting to run
Test / test (push) Waiting to run
Test / test-community (push) Waiting to run
remove Analyze protos from gen_protos.sh #3571
2024-11-07 16:59:20 -05:00

15 lines
419 B
Bash
Executable File

#!/bin/bash
set -eux
for pbfile in $(ls proto/); do
mod=${pbfile%%.proto}
protoc -I proto/ \
-I ${GOPATH}/src \
-I /usr/local/include \
-I ${GOPATH}/src/github.com/envoyproxy/protoc-gen-validate \
--go_out=plugins=grpc:./pkg/pb/${mod}pb --go_opt=paths=source_relative \
--validate_out="lang=go,paths=source_relative:./pkg/pb/${mod}pb" \
proto/${mod}.proto
done