Fix go_kythe_proto generated file_diff_tests
@@ -58,7 +58,7 @@ def go_kythe_proto(proto=None, deps=[]):
deps: the deps for the proto lib
"""
base = proto.rsplit(":", 2)[-1]
- filename = base.split("_", 2)[0] + ".pb.go"
+ filename = '_'.join(base.split("_")[:-1]) + ".pb.go"
if base.endswith("_proto"):
name = base[:-len("proto")] + "go_proto"
else:
@@ -87,4 +87,3 @@ def go_kythe_proto(proto=None, deps=[]):
message = ("The checked in proto for '%s' is out of sync;" +
" please run kythe/proto/generate_go_protobufs.py") % name,
)
-
