do not require project be in GOPATH/src (#2078)

This commit is contained in:
wasaga 2021-04-12 09:43:05 -04:00 committed by GitHub
parent 6aa716bc95
commit 0e66619081
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 557 additions and 559 deletions

File diff suppressed because it is too large Load diff

View file

@ -7,7 +7,7 @@ import "google/protobuf/duration.proto";
import "google/protobuf/struct.proto";
import "envoy/config/cluster/v3/cluster.proto";
import "github.com/pomerium/pomerium/pkg/grpc/crypt/crypt.proto";
import "crypt/crypt.proto";
message Config {
string name = 1;

View file

@ -59,14 +59,14 @@ _import_paths=$(join_by , "${_imports[@]}")
--go_out="$_import_paths,plugins=grpc,paths=source_relative:./audit/." \
./audit/audit.proto
../../scripts/protoc -I "$GOPATH/src" -I ./config/ \
--go_out="$_import_paths,plugins=grpc,paths=source_relative:./config/." \
./config/config.proto
../../scripts/protoc -I ./crypt/ \
--go_out="$_import_paths,plugins=grpc,paths=source_relative:./crypt/." \
./crypt/crypt.proto
../../scripts/protoc -I ./config/ -I ./ \
--go_out="$_import_paths,plugins=grpc,paths=source_relative:./config/." \
./config/config.proto
../../scripts/protoc -I ./databroker/ \
--go_out="$_import_paths,plugins=grpc,paths=source_relative:./databroker/." \
./databroker/databroker.proto