Protobuf Upgrade to 25.2 has broken V1 GAPIC Generator #683
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
cl/603226138 has broken the GAPIC generation in the V1 clients (see googleapis/google-cloud-php#7023). Some of the changes that look wrong are:
This may be due to changes in the way the GAPIC generator locates
google.api.field_behavior
, which is done inFieldDetails::determineIsRequired
, and is read byProtoHelpers::getCustomOptionRaw
:gapic-generator-php/src/Utils/ProtoHelpers.php
Lines 351 to 384 in 277c703
Note: There may be a way to get options from UPB. However, the APIs would need to be implemented for both the pure-PHP and upb backends. The upb library itself supports it, but there is currently no glue.
UPDATE: We've been able to duplicate the error (which seems to be affecting all "repeated" custom options) by updating the
protoc
binary to25.2
and running the following test:UPDATE 2 - If we add
[packed = false]
to the custom option, the previous custom option logic works as expected.The text was updated successfully, but these errors were encountered: