Skip to content

Commit 2aa745c

Browse files
jnthntatumcopybara-github
authored andcommitted
Temporarily pin cel-cpp to a more recent hash.
PiperOrigin-RevId: 852460442
1 parent 64326a2 commit 2aa745c

3 files changed

Lines changed: 17 additions & 3 deletions

File tree

MODULE.bazel

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ bazel_dep(name = "bazel_skylib", version = "1.8.2")
1414
# https://registry.bazel.build/modules/cel-cpp
1515
bazel_dep(name = "cel-cpp", version = "0.14.0", repo_name = "com_google_cel_cpp")
1616

17+
# 12/30/2025
18+
_CEL_CPP_COMMIT = "13b249f589ab3e22dee5b384169cb7dd50804b36"
19+
20+
_CEL_CPP_SHA256 = "c7596db4538722e78f9c7f7ae704a15fd48d5e84254d717b5b558c3b1b0169fa"
21+
22+
archive_override(
23+
module_name = "cel-cpp",
24+
sha256 = _CEL_CPP_SHA256,
25+
strip_prefix = "cel-cpp-" + _CEL_CPP_COMMIT,
26+
url = "https://github.com/google/cel-cpp/archive/" + _CEL_CPP_COMMIT + ".tar.gz",
27+
)
28+
1729
# https://registry.bazel.build/modules/cel-spec
1830
bazel_dep(name = "cel-spec", version = "0.25.1", repo_name = "com_google_cel_spec")
1931

py_descriptor_database.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ PyDescriptorDatabase::~PyDescriptorDatabase() {
4343

4444
// Find a file by file name. Fills in in *output and returns true if found.
4545
// Otherwise, returns false, leaving the contents of *output undefined.
46-
bool PyDescriptorDatabase::FindFileByName(absl::string_view filename,
46+
bool PyDescriptorDatabase::FindFileByName(StringViewArg filename,
4747
google::protobuf::FileDescriptorProto* output) {
4848
ABSL_CHECK(PyGILState_Check());
4949
const google::protobuf::FileDescriptor* file = standard_pool_.FindFileByName(filename);
@@ -89,7 +89,7 @@ bool PyDescriptorDatabase::FindFileByName(absl::string_view filename,
8989
// If found, fills in *output and returns true, otherwise returns false
9090
// and leaves *output undefined.
9191
bool PyDescriptorDatabase::FindFileContainingSymbol(
92-
absl::string_view symbol_name, google::protobuf::FileDescriptorProto* output) {
92+
StringViewArg symbol_name, google::protobuf::FileDescriptorProto* output) {
9393
ABSL_CHECK(PyGILState_Check());
9494
const google::protobuf::FileDescriptor* file =
9595
standard_pool_.FindFileContainingSymbol(symbol_name);
@@ -135,7 +135,7 @@ bool PyDescriptorDatabase::FindFileContainingSymbol(
135135
// otherwise returns false and leaves *output undefined. containing_type
136136
// must be a fully-qualified type name.
137137
bool PyDescriptorDatabase::FindFileContainingExtension(
138-
absl::string_view containing_type, int field_number,
138+
StringViewArg containing_type, int field_number,
139139
google::protobuf::FileDescriptorProto* output) {
140140
ABSL_CHECK(PyGILState_Check());
141141
PyObject* py_containing_type = PyObject_CallMethod(

py_descriptor_database.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ namespace cel_python {
2626

2727
// A DescriptorDatabase that uses a Python DescriptorPool to find descriptors.
2828
class PyDescriptorDatabase : public google::protobuf::DescriptorDatabase {
29+
private:
30+
using StringViewArg = const std::string&;
2931
public:
3032
explicit PyDescriptorDatabase(PyObject* py_descriptor_pool);
3133
~PyDescriptorDatabase() override;

0 commit comments

Comments
 (0)