This change does not directly do anything useful, but the goal is to
confirm that the GitHub action for auto-generating file_lists.cmake will
quickly rewrite the file in its canonical form.
This GitHub action will run after each pull request merge and will auto-update
the file lists in in src/file_lists.cmake. The action will run as our
bot account.
I realized that if a bug somehow made the file generation
non-idempotent, this could trigger an infinite loop of commits, so I put
in an extra safeguard against that. If the previous commit was by
"Protobuf Team Bot", the GitHub action will revert any local changes to
ensure that no new commit will be made.
PHP 8.2 complains about Internal\Message setting dynamic properties:
`Creation of dynamic property xxx is deprecated
/usr/src/myapp/vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php:153`
Since the class uses dynamic properties a bit, enable them explicitly with an attribute.
* Use generated WKT code in Bazel builds
* Prefer src over external for genrule
* Prefer external over src for genrule
* Proper fix for windows proto path issues
- also, include check for default JSON name conflicts even in proto2
files (but only warn)
- if custom JSON name conflicts with other default name, only a
warning in proto2
Java 18 added additional linter checks as part of
https://bugs.openjdk.java.net/browse/JDK-8274336 and
https://bugs.openjdk.java.net/browse/JDK-8274335
These additional checks cause generated protobuf code to raise the
following compiler warning: "non-transient instance field of a
serializable class declared with a non-serializable type"
This change fixes the code generation to annotate the generated fields
with the necessary suppressions to avoid false positives.
All the code generated from src/google/protobuf/*.proto now
compiles successfully without serialization warnings in Java 18.
fixes#9673