Skip to content

Commit

Permalink
Some fixes to make the tests pass on Bazel.
Browse files Browse the repository at this point in the history
  • Loading branch information
haberman committed Apr 1, 2020
1 parent 6e229f1 commit 2435589
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions BUILD
Expand Up @@ -524,6 +524,7 @@ RELATIVE_TEST_PROTOS = [
"google/protobuf/unittest_proto3_arena.proto",
"google/protobuf/unittest_proto3_arena_lite.proto",
"google/protobuf/unittest_proto3_lite.proto",
"google/protobuf/unittest_proto3_optional.proto",
"google/protobuf/unittest_well_known_types.proto",
"google/protobuf/util/internal/testdata/anys.proto",
"google/protobuf/util/internal/testdata/books.proto",
Expand Down
3 changes: 3 additions & 0 deletions src/google/protobuf/compiler/command_line_interface.cc
Expand Up @@ -1105,6 +1105,9 @@ PopulateSingleSimpleDescriptorDatabase(const std::string& descriptor_set_name) {
bool CommandLineInterface::AllowProto3Optional(
const FileDescriptor& file) const {
if (allow_proto3_optional_) return true;
if (file.name() == "google/protobuf/unittest_proto3_optional.proto") {
return true;
}
return false;
}

Expand Down

0 comments on commit 2435589

Please sign in to comment.