-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(bazel): add MODULE.bazel files for bzlmod (#400)
* Minor build change to make bzlmod happy * Remove gRPC dependency from MODULE.bazel * Consolidation of all test protos onto canonical format * Prune dependencies from cel-spec MODULE.bazel * Update the bazelversion to 7.0.1 * Configure rules_python to ignore root user error * Update conformance tests to refer to canonical protos * Update go.mod, go.sum * Remove extra go-dep from bazel-mod
- Loading branch information
1 parent
55cd8c3
commit 373994d
Showing
69 changed files
with
13,909 additions
and
14,032 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
6.4.0 | ||
7.0.1 | ||
# Keep this pinned version in parity with cel-go |
This file contains 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
bazel-* | ||
MODULE.bazel.lock |
This file contains 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,70 @@ | ||
module( | ||
name = "cel-spec", | ||
) | ||
|
||
bazel_dep( | ||
name = "bazel_skylib", | ||
version = "1.7.1", | ||
) | ||
bazel_dep( | ||
name = "gazelle", | ||
version = "0.36.0", | ||
repo_name = "bazel_gazelle", | ||
) | ||
bazel_dep( | ||
name = "googleapis", | ||
version = "0.0.0-20240819-fe8ba054a", | ||
repo_name = "com_google_googleapis", | ||
) | ||
bazel_dep( | ||
name = "protobuf", | ||
version = "26.0", | ||
repo_name = "com_google_protobuf", | ||
) | ||
bazel_dep( | ||
name = "rules_cc", | ||
version = "0.0.9", | ||
) | ||
bazel_dep( | ||
name = "rules_go", | ||
version = "0.49.0", | ||
repo_name = "io_bazel_rules_go", | ||
) | ||
bazel_dep( | ||
name = "rules_java", | ||
version = "7.6.5", | ||
) | ||
bazel_dep( | ||
name = "rules_proto", | ||
version = "6.0.0", | ||
) | ||
bazel_dep( | ||
name = "rules_python", | ||
version = "0.35.0", | ||
) | ||
|
||
### PYTHON ### | ||
python = use_extension("@rules_python//python/extensions:python.bzl", "python") | ||
python.toolchain( | ||
ignore_root_user_error = True, | ||
python_version = "3.11", | ||
) | ||
|
||
switched_rules = use_extension("@com_google_googleapis//:extensions.bzl", "switched_rules") | ||
switched_rules.use_languages( | ||
cc = True, | ||
go = True, | ||
java = True, | ||
) | ||
use_repo(switched_rules, "com_google_googleapis_imports") | ||
|
||
go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk") | ||
go_sdk.download(version = "1.21.1") | ||
|
||
go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") | ||
go_deps.from_file(go_mod = "//:go.mod") | ||
use_repo( | ||
go_deps, | ||
"org_golang_google_genproto_googleapis_rpc", | ||
"org_golang_google_protobuf", | ||
) |
Empty file.
This file contains 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 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,34 @@ | ||
# Copyright 2024 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
load("@io_bazel_rules_go//go:def.bzl", "go_library") | ||
|
||
package( | ||
default_visibility = ["//visibility:public"], | ||
licenses = ["notice"], # Apache 2.0 | ||
) | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = [ | ||
"conformance_service.pb.go", | ||
], | ||
importpath = "cel.dev/expr/conformance", | ||
deps = [ | ||
"//:expr", | ||
"@org_golang_google_genproto_googleapis_rpc//status:go_default_library", | ||
"@org_golang_google_protobuf//reflect/protoreflect", | ||
"@org_golang_google_protobuf//runtime/protoimpl", | ||
], | ||
) |
Oops, something went wrong.