mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
ccf19fbf5e
The proto file is structurally unchanged, though it now requires a go import path option.
17 lines
502 B
Bash
17 lines
502 B
Bash
#!/bin/bash
|
|
|
|
# We do not run protoc under go:generate because we want to ensure that all
|
|
# dependencies of go:generate are "go get"-able for general dev environment
|
|
# usability. To compile all protobuf files in this repository, run
|
|
# "make protobuf" at the top-level.
|
|
|
|
set -eu
|
|
|
|
SOURCE="${BASH_SOURCE[0]}"
|
|
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
|
|
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
|
|
|
cd "$DIR"
|
|
|
|
protoc --go_out=paths=source_relative,plugins=grpc:. ./tfplugin5.proto
|