Skip to content

Commit

Permalink
Remove support for //net/proto2/go:proto dependency
Browse files Browse the repository at this point in the history
This is a follow up to bazelbuild@1a52509,
which added //net/proto2/go:protodeps as a new dependency
for every go_proto_library rule.
For the past year, we have been using protodeps exclusively
and the proto package is no longer a necessary dependency,
so we're removing support for injecting it.

RELNOTES: Generated Go protobufs no longer depend on //net/proto2/go:proto
PiperOrigin-RevId: 335538835
  • Loading branch information
Googler authored and copybara-github committed Oct 6, 2020
1 parent 73929f9 commit a991db7
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@ private static void createNetProto2(MockToolsConfig config) throws IOException {
"net/proto2/go/BUILD",
"package(default_visibility=['//visibility:public'])",
"go_library(name = 'protodeps',",
" srcs = [ 'protodeps.go' ])",
"go_library(name = 'proto',",
" srcs = [ 'proto.go' ])");
" srcs = [ 'protodeps.go' ])");
config.create("net/proto2/compiler/go/BUILD",
"package(default_visibility=['//visibility:public'])",
"go_binary(name = 'protoc-gen-go',",
Expand Down

0 comments on commit a991db7

Please sign in to comment.