github.com/hashicorp/terraform-plugin-sdk@v1.17.2/internal/tfplugin5/generate.sh (about)

     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:./