Skip to content

Commit e8ca4c6

Browse files
committed
Another approach
1 parent 2657e88 commit e8ca4c6

File tree

2 files changed

+38
-39
lines changed

2 files changed

+38
-39
lines changed

WORKSPACE

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ http_archive(
2020

2121
http_archive(
2222
name = "rules_proto",
23-
sha256 = "dc3fb206a2cb3441b485eb1e423165b231235a1ea9b031b4433cf7bc1fa460dd",
24-
strip_prefix = "rules_proto-5.3.0-21.7",
23+
sha256 = "e017528fd1c91c5a33f15493e3a398181a9e821a804eb7ff5acdd1d2d6c2b18d",
24+
strip_prefix = "rules_proto-4.0.0-3.20.0",
2525
urls = [
26-
"https://github.com/bazelbuild/rules_proto/archive/refs/tags/5.3.0-21.7.tar.gz",
26+
"https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0-3.20.0.tar.gz",
2727
],
2828
)
2929

@@ -81,19 +81,10 @@ http_archive(
8181
urls = ["https://github.com/abseil/abseil-cpp/archive/master.zip"],
8282
)
8383

84-
# rules-python
85-
http_archive(
86-
name = "rules_python",
87-
sha256 = "9d04041ac92a0985e344235f5d946f71ac543f1b1565f2cdbc9a2aaee8adf55b",
88-
strip_prefix = "rules_python-0.26.0",
89-
url = "https://github.com/bazelbuild/rules_python/releases/download/0.26.0/rules_python-0.26.0.tar.gz",
90-
)
91-
9284
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
9385
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
9486
load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language")
9587
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
96-
load("@rules_python//python:repositories.bzl", "py_repositories")
9788
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
9889

9990
switched_rules_by_language(
@@ -149,7 +140,6 @@ go_repository(
149140
go_rules_dependencies()
150141
go_register_toolchains(version = "1.19.1")
151142
gazelle_dependencies()
152-
py_repositories()
153143
rules_proto_dependencies()
154144
rules_proto_toolchains()
155145
protobuf_deps()

proto/cel/expr/BUILD.bazel

Lines changed: 35 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -210,34 +210,43 @@ cc_proto_library(
210210
###############################################################################
211211
## Python
212212
###############################################################################
213-
load("@rules_python//python:proto.bzl", "py_proto_library")
214213

215-
py_proto_library(
216-
name = "expr_py_pb2",
217-
deps = [":expr_proto"],
218-
)
219-
220-
py_proto_library(
221-
name = "syntax_py_pb2",
222-
deps = [":syntax_proto"],
223-
)
224-
225-
py_proto_library(
226-
name = "checked_py_pb2",
227-
deps = [":checked_proto"],
228-
)
214+
load("@com_google_protobuf//:protobuf.bzl", "py_proto_library")
229215

230216
py_proto_library(
231-
name = "value_py_pb2",
232-
deps = [":value_proto"],
233-
)
234-
235-
py_proto_library(
236-
name = "eval_py_pb2",
237-
deps = [":eval_proto"],
217+
name = "syntax_py_proto",
218+
srcs = ["syntax.proto"],
219+
deps = [
220+
"@com_google_protobuf//:well_known_types_py_pb2",
221+
],
238222
)
239223

240-
py_proto_library(
241-
name = "explain_py_pb2",
242-
deps = [":explain_proto"],
243-
)
224+
#py_proto_library(
225+
# name = "expr_py_pb2",
226+
# deps = [":expr_proto"],
227+
#)
228+
#
229+
#py_proto_library(
230+
# name = "syntax_py_pb2",
231+
# deps = [":syntax_proto"],
232+
#)
233+
#
234+
#py_proto_library(
235+
# name = "checked_py_pb2",
236+
# deps = [":checked_proto"],
237+
#)
238+
#
239+
#py_proto_library(
240+
# name = "value_py_pb2",
241+
# deps = [":value_proto"],
242+
#)
243+
#
244+
#py_proto_library(
245+
# name = "eval_py_pb2",
246+
# deps = [":eval_proto"],
247+
#)
248+
#
249+
#py_proto_library(
250+
# name = "explain_py_pb2",
251+
# deps = [":explain_proto"],
252+
#)

0 commit comments

Comments
 (0)