diff options
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/internal/tfplugin5/generate.sh')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/internal/tfplugin5/generate.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/internal/tfplugin5/generate.sh b/vendor/github.com/hashicorp/terraform/internal/tfplugin5/generate.sh new file mode 100644 index 0000000..de1d693 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform/internal/tfplugin5/generate.sh | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # We do not run protoc under go:generate because we want to ensure that all | ||
4 | # dependencies of go:generate are "go get"-able for general dev environment | ||
5 | # usability. To compile all protobuf files in this repository, run | ||
6 | # "make protobuf" at the top-level. | ||
7 | |||
8 | set -eu | ||
9 | |||
10 | SOURCE="${BASH_SOURCE[0]}" | ||
11 | while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done | ||
12 | DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" | ||
13 | |||
14 | cd "$DIR" | ||
15 | |||
16 | protoc -I ./ tfplugin5.proto --go_out=plugins=grpc:./ | ||