bazel: trim path to *.pb.go files embedded in go libraries

See https://github.com/bazelbuild/rules_go/issues/3581 for context.
This commit is contained in:
Malte Poll 2023-06-08 20:09:46 +02:00 committed by Malte Poll
parent 4908b5f63c
commit 537cdbcfad
7 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,7 @@ proto_library(
go_proto_library(
name = "initproto_go_proto",
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
gc_goopts = ["-trimpath=$(BINDIR)=>."],
importpath = "github.com/edgelesssys/constellation/v2/bootstrapper/initproto",
proto = ":initproto_proto",
visibility = ["//visibility:public"],

View File

@ -12,6 +12,7 @@ proto_library(
go_proto_library(
name = "service_go_proto",
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
gc_goopts = ["-trimpath=$(BINDIR)=>."],
importpath = "github.com/edgelesssys/constellation/v2/debugd/service",
proto = ":service_proto",
visibility = ["//visibility:public"],

View File

@ -12,6 +12,7 @@ proto_library(
go_proto_library(
name = "recoverproto_go_proto",
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
gc_goopts = ["-trimpath=$(BINDIR)=>."],
importpath = "github.com/edgelesssys/constellation/v2/disk-mapper/recoverproto",
proto = ":recoverproto_proto",
visibility = ["//visibility:public"],

View File

@ -12,6 +12,7 @@ proto_library(
go_proto_library(
name = "joinproto_go_proto",
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
gc_goopts = ["-trimpath=$(BINDIR)=>."],
importpath = "github.com/edgelesssys/constellation/v2/joinservice/joinproto",
proto = ":joinproto_proto",
visibility = ["//visibility:public"],

View File

@ -12,6 +12,7 @@ proto_library(
go_proto_library(
name = "keyserviceproto_go_proto",
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
gc_goopts = ["-trimpath=$(BINDIR)=>."],
importpath = "github.com/edgelesssys/constellation/v2/keyservice/keyserviceproto",
proto = ":keyserviceproto_proto",
visibility = ["//visibility:public"],

View File

@ -12,6 +12,7 @@ proto_library(
go_proto_library(
name = "upgradeproto_go_proto",
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
gc_goopts = ["-trimpath=$(BINDIR)=>."],
importpath = "github.com/edgelesssys/constellation/v2/upgrade-agent/upgradeproto",
proto = ":upgradeproto_proto",
visibility = ["//visibility:public"],

View File

@ -12,6 +12,7 @@ proto_library(
go_proto_library(
name = "verifyproto_go_proto",
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
gc_goopts = ["-trimpath=$(BINDIR)=>."],
importpath = "github.com/edgelesssys/constellation/v2/verify/verifyproto",
proto = ":verifyproto_proto",
visibility = ["//visibility:public"],