Skip to content

Commit

Permalink
Readd grpc.pb.go based on compiler standardization in OC repos (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcushines authored May 1, 2024
1 parent a5aee24 commit 1d16819
Show file tree
Hide file tree
Showing 59 changed files with 4,012 additions and 3,543 deletions.
14 changes: 8 additions & 6 deletions bgp/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
load("@rules_proto//proto:defs.bzl", "proto_library")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library")
load("//:common.bzl", "use_new_compilers")

#Copyright 2021 Google LLC
#
Expand All @@ -15,17 +17,14 @@ load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Supporting infrastructure for implementing and testing PINS.
#

load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library")

package(
default_visibility = ["//visibility:public"],
licenses = ["notice"],
)

use_new_compilers()

proto_library(
name = "bgp_proto",
srcs = ["bgp.proto"],
Expand All @@ -48,7 +47,10 @@ cc_grpc_library(

go_proto_library(
name = "bgp_go_proto",
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
compilers = [
"go_protoc_gen_go",
"go_protoc_gen_go_grpc",
],
importpath = "github.com/openconfig/gnoi/bgp",
proto = ":bgp_proto",
deps = ["//types"],
Expand Down
84 changes: 0 additions & 84 deletions bgp/bgp.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bgp/bgp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

syntax = "proto3";

package gnoi.bgp;
Expand Down
105 changes: 105 additions & 0 deletions bgp/bgp_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions bootconfig/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
load("@rules_proto//proto:defs.bzl", "proto_library")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")

load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library")
load("//:common.bzl", "use_new_compilers")

#Copyright 2021 Google LLC
#
Expand All @@ -23,6 +23,8 @@ package(
licenses = ["notice"],
)

use_new_compilers()

proto_library(
name = "bootconfig_proto",
srcs = ["bootconfig.proto"],
Expand Down Expand Up @@ -50,7 +52,10 @@ cc_grpc_library(

go_proto_library(
name = "bootconfig_go_proto",
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
compilers = [
"go_protoc_gen_go",
"go_protoc_gen_go_grpc",
],
importpath = "github.com/openconfig/gnoi/bootconfig",
proto = ":bootconfig_proto",
deps = [
Expand Down
Loading

0 comments on commit 1d16819

Please sign in to comment.