mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-14 08:57:40 +00:00
32 lines
1.3 KiB
Bash
Executable file
32 lines
1.3 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
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/credentialspb --go_opt=paths=source_relative \
|
|
--validate_out="lang=go,paths=source_relative:./pkg/pb/credentialspb" \
|
|
proto/credentials.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/sourcespb --go_opt=paths=source_relative \
|
|
--validate_out="lang=go,paths=source_relative:./pkg/pb/sourcespb" \
|
|
proto/sources.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/detectorspb --go_opt=paths=source_relative \
|
|
--validate_out="lang=go,paths=source_relative:./pkg/pb/detectorspb" \
|
|
proto/detectors.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/source_metadatapb --go_opt=paths=source_relative \
|
|
--validate_out="lang=go,paths=source_relative:./pkg/pb/source_metadatapb" \
|
|
proto/source_metadata.proto
|