github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/plans/internal/planproto/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 --go_out=paths=source_relative:. planfile.proto