Sandy Zhang
2cee142461
Add visibility for rust public aliases for '@protobuf//:protobuf_rust'
...
PiperOrigin-RevId: 652511009
4 months ago
Jerry Berg
d1c9cfbb3b
Merge pull request #17768 from protocolbuffers/28.x-202408082011
...
Merge release commits to 28.x
4 months ago
Protobuf Team Bot
53f78b4278
Updating version.json and repo version numbers to: 28.0-dev
4 months ago
Protobuf Team Bot
4afaa64c95
Updating version.json and repo version numbers to: 28.0-rc2
4 months ago
zhangskz
83c0b480e5
Merge pull request #17728 from protocolbuffers/cp-pom
...
Cherry pick changes to drop Java pom.xml files unused for release.
4 months ago
Deanna Garcia
aaf5f798c0
Remove unused pom.xml files.
...
We mostly use generated pom files in our release currently, so we can delete all the files that aren't used and the tools to update them.
Note, java/bom/pom.xml java/pom.xml and java/protoc/pom.xml are all still used at release and java/kotlin/pom.xml is used for documentation so all of those need to stay for now.
PiperOrigin-RevId: 659664012
4 months ago
Deanna Garcia
6a7e2154a2
Set -ex in test_java.yml
...
This will cause the script to fail if any command fails, which will make it easier to debug failures.
PiperOrigin-RevId: 658878371
4 months ago
Deanna Garcia
671ef8b852
Refactor java maven GHA test to use our generated jars.
...
This allows us to test our maven setup without relying on static `pom.xml` files and clears the way to remove them in a subsequent CL.
PiperOrigin-RevId: 658057911
4 months ago
zhangskz
1869419410
Merge pull request #17702 from thomasvl/patch_objc_to_28
...
CherryPick the lastest work for Objective-C over the the 28 branch
4 months ago
Thomas Van Lenten
c46340eb36
[ObjC] Support errors when merging unknown fields to a message.
...
PiperOrigin-RevId: 658782615
4 months ago
Thomas Van Lenten
c5c9c89441
[ObjC] Add apis for removing things from `GPBUnknownFields`.
...
PiperOrigin-RevId: 658538490
4 months ago
zhangskz
ed6dcd7182
Merge pull request #17618 from protocolbuffers/cp-utf8-ascii-28.x
...
Remove `/utf-8` flag added in #14197
4 months ago
Adam Cozzette
440dc8306d
Remove `/utf-8` flag added in #14197
...
We have received several reports in #17036 that the addition of this flag
actually broke the use of command argument files with non-ASCII characters in
their names. It looks like #14253 ended up fixing the original issue with a
different solution anyway. Hopefully this change fixes the issue with non-ASCII
characters.
PiperOrigin-RevId: 655660885
4 months ago
zhangskz
b045935521
Merge pull request #17587 from thomasvl/patch_objc_to_28
...
CherryPick the newer work for Objective-C over the the 28 branch.
4 months ago
Thomas Van Lenten
a6b353582c
[ObjC] Collect unknown fields as data
...
Default to collecting unknown fields as data and then create the
`GPBUnknownFieldSet` on demand when requested.
This should reduce the as the extra objects are created until requested
and clears the way to eventually deprecated `GPBUnknownFieldSet` in the
future.
This also fixes the failing conformance test related to keeping the ordering.
PiperOrigin-RevId: 655929316
4 months ago
Thomas Van Lenten
bf2d4e707c
[ObjC] Internal helper for getting the unknown field data from a message
...
PiperOrigin-RevId: 655202619
4 months ago
Thomas Van Lenten
0832b52355
[ObjC] Update tests to use both unknown fields apis.
...
Also fixes edge case where merging into an autocreated message for a field
wasn't marking the field as set in the parent.
PiperOrigin-RevId: 655196339
4 months ago
Thomas Van Lenten
d1b6f8c8eb
[ObjC] Deprecate GPBTextFormatForUnknownFieldSet().
...
`GPBTextFormatForMessage()` will contain any information for unknown fields.
And it clears the way for `GPBUnknownFieldSet` to eventually be deprecated
also.
PiperOrigin-RevId: 655184316
4 months ago
Thomas Van Lenten
9b16ee477b
[ObjC] Parsing helper and tests around unknown fields.
...
Make a new internal api for collecting up the unknown group fields
that will be used in a future change.
Add testing for the new api and for unknown field parsing of groups in
general.
PiperOrigin-RevId: 654875605
4 months ago
Thomas Van Lenten
fad7b78e1a
[ObjC] Add test around enum unknown values.
...
PiperOrigin-RevId: 654858735
4 months ago
Thomas Van Lenten
cf7abf6c6b
[ObjC] Expose a helper for stream error.
...
Also mark the helper as not inline able to avoid the code being over duplicated
within the file with some compiler optimizations turned on.
PiperOrigin-RevId: 654826102
4 months ago
Thomas Van Lenten
ddf9b76704
[ObjC] Support MessageSet with `GPBUnknownFields`.
...
Update the initialization from a message to deal with the current differences.
Update some tests to cover the usage.
PiperOrigin-RevId: 652892603
4 months ago
Thomas Van Lenten
5fa8cd9574
[ObjC] Update MessageSet Parsing.
...
- Follow upb and only accept the first value for `type_id` and `message`
- Reflow some of the logic to hopefully make things a little easier to follow/clear.
- Validate some more assertion about things the extensions for a MessageSet.
PiperOrigin-RevId: 652545240
4 months ago
Thomas Van Lenten
3aa491cf8f
[ObjC] Validate MessageSet expectations.
...
- Make the generator error if things are violated.
- Have the runtime assert in debug about the things also.
PiperOrigin-RevId: 651810474
4 months ago
Thomas Van Lenten
ef4898fc5e
[ObjC] Improve parsing validations
...
Pass through the expected end marker and validate it so calling code can't
forget to do the validations.
PiperOrigin-RevId: 651809006
4 months ago
zhangskz
7699dd0438
Merge pull request #17512 from anandolee/28.x
...
Cherrypick python deprecated warnings for reflection.py and service.py to 28.x
4 months ago
Joshua Haberman
fa8dbaec86
Merge pull request #17510 from protocolbuffers/cherrypick-ruby-utf8
...
[Ruby] Warn if assigning a "UTF-8" string with invalid UTF-8. (#17253 )
4 months ago
Jie Luo
902a68a159
-Remove service.py usages in builder
...
-Raise warnings for deprecated google/protobuf/service.py APIs.
service.py APIs are marked as deprecated since 2010. These APIs will be
removed in Jan 2025
PiperOrigin-RevId: 653280370
4 months ago
Jie Luo
38140ac544
Raise warnings for deprecated google/protobuf/reflection.py APIs.
...
reflection.py APIs are marked as deprecated since 2018. These APIs will be
removed in Jan 2025
PiperOrigin-RevId: 653263213
4 months ago
Joshua Haberman
fe9a53cb51
[Ruby] Warn if assigning a "UTF-8" string with invalid UTF-8. ( #17253 )
...
This is a warning now, but will be an error in the next version.
PiperOrigin-RevId: 653236128
4 months ago
zhangskz
ca75771fe7
Merge pull request #17475 from protocolbuffers/cp-downgrade-cmake
...
Downgrade CMake to 3.29 to workaround Abseil issue.
4 months ago
Mike Kruskal
cd75dd5982
Downgrade CMake to 3.29 to workaround Abseil issue.
...
This was fixed in cd7f66cab5
, but older versions of Abseil break in CMake 3.30, which github runners now use by default.
PiperOrigin-RevId: 651854867
4 months ago
Protobuf Team Bot
e3e43446f2
Updating version.json and repo version numbers to: 28.0-dev
5 months ago
Protobuf Team Bot
e70d04d915
Updating version.json and repo version numbers to: 28.0-rc1
5 months ago
Sandy Zhang
ccb23625f8
Remove -fsjlj-exceptions from win32-config
...
This seems to be missing using i686-w64-mingw32/10-posix after updating release images to Debian 11.
It is not clear why this flag was added in the first place for win32 but not win64.
Context: https://stackoverflow.com/questions/61206449/how-to-compile-with-clang-and-mingw-w64
PiperOrigin-RevId: 651545252
5 months ago
Hong Shin
5f366b3b7d
update .proto namespace for hpb_generator/tests
...
PiperOrigin-RevId: 651523466
5 months ago
Protobuf Team Bot
b8cb34d744
Prepare the code for migrating return types from `const std::string&` to
...
`absl::string_view`.
PiperOrigin-RevId: 651520812
5 months ago
Tony Liao
34136b3794
Comment-only change: update and clarify code comments for io::Printer.
...
PiperOrigin-RevId: 651499037
5 months ago
Protobuf Team Bot
f70ba6482e
Change reflection based accessors to not modify the instance unless it is
...
necessary.
This is necessary for moving default message instances to rodata.
PiperOrigin-RevId: 651493772
5 months ago
Protobuf Team Bot
03729f631b
Internal changes to versions
...
PiperOrigin-RevId: 651493393
5 months ago
Protobuf Team Bot
7fa8718467
In RepeatedField, rename members and use member accessors.
...
Motivation: refactoring in preparation for small object optimization in RepeatedField.
PiperOrigin-RevId: 651446582
5 months ago
Protobuf Team Bot
77047d9cda
Auto-generate files after cl/651119789
5 months ago
Protobuf Team Bot
89cd4cfc35
Auto-generate files after cl/651113583
5 months ago
Protobuf Team Bot
c97a042116
In the custom vtable mode invert how the static/non-static overloads versions work for ByteSizeLong and _InternalSerialize. That way the public entry point and the function pointer both end up being the same. Currently, the static function is a separate function than the one called externally, forcing two functions to exist.
...
It has no effect in normal mode.
PiperOrigin-RevId: 651119789
5 months ago
Protobuf Team Bot
5025dcd9c0
Automated rollback of commit d3d86d2bee
.
...
PiperOrigin-RevId: 651114051
5 months ago
Protobuf Team Bot
f9dd9ce66e
UPB text encoder without using reflection for Rust (used for a message's Debug trait) that will print out field number to value entries instead of field name to value entries of a message like how it's expected for the usual text format using reflection.
...
General test for it is done in Rust, and then extensions are tested in UPB as they're not currently supported in Rust-upb.
PiperOrigin-RevId: 651113583
5 months ago
Protobuf Team Bot
32bcf0bead
Prepare the code for migrating protobuf string accessors to
...
`absl::string_view`.
PiperOrigin-RevId: 651113544
5 months ago
Hong Shin
ab78e2fc1d
protos -> hpb namespace transition :: minimal slice
...
PiperOrigin-RevId: 651111836
5 months ago
Marcel Hlopko
21c545c8c5
Delete dead code
...
PiperOrigin-RevId: 650892555
5 months ago
Sandy Zhang
759b25ed3e
Update old comment to reflect that Java lite bit encodes enum closedness rather than just map fields with closed proto2 enum values pre-editions.
...
PiperOrigin-RevId: 650824123
5 months ago