-
Notifications
You must be signed in to change notification settings - Fork 15.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix latest ArgumentException for C# extensions #6938
Fix latest ArgumentException for C# extensions #6938
Conversation
{ | ||
registry.AddRange(dependencies.SelectMany(GetAllDependedExtensions).Concat(GetAllGeneratedExtensions(generatedInfo)).ToArray()); | ||
return dependencies.SelectMany(GetAllDependedExtensions).Distinct().Concat(GetAllGeneratedExtensions(generatedInfo)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we get an enumerable over the files and run distinct on those so we don't duplicate work by loading the file's extensions multiple times?
c99925b
to
cd11d54
Compare
The MacOS Ruby test failure is a known one (thanks for fixing it so quickly btw). |
73e6ec2
to
145033c
Compare
csharp/generate_protos.sh
Outdated
src/google/protobuf/unittest_well_known_types.proto \ | ||
src/google/protobuf/test_messages_proto3.proto \ | ||
src/google/protobuf/test_messages_proto2.proto | ||
map_unittest_proto3.proto \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are you removing the prefix from the path? Looks unrelated to this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert unnecessary changes.
distcheck is currently failing (see test results). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once the tests pass.
@ObsidianMinor thanks for fixing the problem!
Fix latest ArgumentException for C# extensions
Fix latest ArgumentException for C# extensions Co-authored-by: Jan Tattermusch <[email protected]>
…eep the code to remove repeated depended files.
Adds a Distinct filter for extensions loaded from depended descriptors. Fixes #6936
cc: @jtattermusch @rafi-kamal