-
Notifications
You must be signed in to change notification settings - Fork 5.3k
deps: Experiment — adopt canonical CEL - py_proto_library support via rules_python #30159
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
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| diff --git a/python/google/protobuf/__init__.py b/python/google/protobuf/__init__.py | ||
| index e7555ee10..a93beb1c5 100644 | ||
| --- a/python/google/protobuf/__init__.py | ||
| +++ b/python/google/protobuf/__init__.py | ||
| @@ -31,3 +31,10 @@ | ||
| # Copyright 2007 Google Inc. All Rights Reserved. | ||
|
|
||
| __version__ = '4.23.4' | ||
| + | ||
| + | ||
| +if __name__ != '__main__': | ||
| + try: | ||
| + __import__('pkg_resources').declare_namespace(__name__) | ||
| + except ImportError: | ||
| + __path__ = __import__('pkgutil').extend_path(__path__, __name__) | ||
| diff --git a/src/google/protobuf/io/BUILD.bazel b/src/google/protobuf/io/BUILD.bazel | ||
| --- a/src/google/protobuf/io/BUILD.bazel | ||
| +++ b/src/google/protobuf/io/BUILD.bazel | ||
| @@ -138,7 +138,7 @@ cc_library( | ||
| "@com_google_absl//absl/log:absl_log", | ||
| ] + select({ | ||
| "//build_defs:config_msvc": [], | ||
| - "//conditions:default": ["@zlib//:zlib"], | ||
| + "//conditions:default": ["//external:zlib"], | ||
| }), | ||
| ) | ||
|
|
||
| diff --git a/src/google/protobuf/port_def.inc b/src/google/protobuf/port_def.inc | ||
| --- a/src/google/protobuf/port_def.inc 2023-06-27 01:17:34.917105764 +0000 | ||
| +++ b/src/google/protobuf/port_def.inc 2023-06-27 01:18:12.069060142 +0000 | ||
| @@ -1004,7 +1004,7 @@ | ||
| #pragma clang diagnostic ignored "-Wshorten-64-to-32" | ||
| // Turn on -Wdeprecated-enum-enum-conversion. This deprecation comes in C++20 | ||
| // via http://wg21.link/p1120r0. | ||
| -#pragma clang diagnostic error "-Wdeprecated-enum-enum-conversion" | ||
| +// #pragma clang diagnostic error "-Wdeprecated-enum-enum-conversion" | ||
| // This error has been generally flaky, but we need to disable it specifically | ||
| // to fix https://github.com/protocolbuffers/protobuf/issues/12313 | ||
| #pragma clang diagnostic ignored "-Wunused-parameter" | ||
| diff --git a/src/google/protobuf/map.h b/src/google/protobuf/map.h | ||
| --- a/src/google/protobuf/map.h 2023-06-30 14:32:34.892148233 +0000 | ||
| +++ b/src/google/protobuf/map.h 2023-06-30 14:35:37.447992493 +0000 | ||
| @@ -883,7 +883,7 @@ | ||
| TreeConvert(b); | ||
| } | ||
| ABSL_DCHECK(TableEntryIsTree(b)) | ||
| - << (void*)table_[b] << " " << (uintptr_t)table_[b]; | ||
| + << reinterpret_cast<void*>(table_[b]) << " " << static_cast<uintptr_t>(table_[b]); | ||
| InsertUniqueInTree(b, node); | ||
| index_of_first_non_null_ = (std::min)(index_of_first_non_null_, b); | ||
| } | ||
| diff --git a/src/google/protobuf/map_field.h b/src/google/protobuf/map_field.h | ||
| --- a/src/google/protobuf/map_field.h 2023-06-30 17:14:18.934528580 +0000 | ||
| +++ b/src/google/protobuf/map_field.h 2023-06-30 17:14:52.098500807 +0000 | ||
| @@ -345,7 +345,7 @@ | ||
|
|
||
| protected: | ||
| // "protected" stops users from deleting a `MapFieldBase *` | ||
| - ~MapFieldBase(); | ||
| + virtual ~MapFieldBase(); | ||
|
|
||
| public: | ||
| // Returns reference to internal repeated field. Data written using | ||
| diff --git a/src/google/protobuf/compiler/BUILD.bazel b/src/google/protobuf/compiler/BUILD.bazel | ||
| --- a/src/google/protobuf/compiler/BUILD.bazel | ||
| +++ b/src/google/protobuf/compiler/BUILD.bazel | ||
| @@ -306,7 +306,7 @@ | ||
| srcs = ["retention.cc"], | ||
| hdrs = ["retention.h"], | ||
| include_prefix = "google/protobuf/compiler", | ||
| - visibility = ["//src/google/protobuf:__subpackages__"], | ||
| + visibility = ["//visibility:public"], | ||
| deps = [ | ||
| "//src/google/protobuf:protobuf_nowkt", | ||
| "@com_google_absl//absl/types:span", | ||
|
|
||
| diff --git a/src/google/protobuf/port_def.inc b/src/google/protobuf/port_def.inc | ||
| index 1c6a24945..c27d0bf2a 100644 | ||
| --- a/src/google/protobuf/port_def.inc | ||
| +++ b/src/google/protobuf/port_def.inc | ||
| @@ -1062,6 +1062,9 @@ static_assert(PROTOBUF_ABSL_MIN(20230125, 3), | ||
| #pragma warning(disable: 4125) | ||
| #endif | ||
|
|
||
| +#if defined(__GNUC__) | ||
| +#pragma GCC diagnostic ignored "-Wundef" | ||
| +#endif | ||
| #if PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII | ||
| #define PROTOBUF_DEBUG true | ||
| #else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Let me know when ready for review. It looks like this is still pointing at a branch.
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.
Yes - this is still a draft. I'll click "Ready for review" when it's ready.