-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade cel-go to support bazel-mod (#1049)
* Support for cel-spec v0.18.0 * Minor update to the WORKSPACE * Update go version in Cloud Build
- Loading branch information
1 parent
7c13168
commit 3338c3f
Showing
48 changed files
with
5,524 additions
and
214 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 +1 @@ | ||
6.4.0 | ||
7.0.1 |
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ bazel-testlogs | |
proto/checked.pb.go | ||
proto/syntax.pb.go | ||
*~ | ||
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,89 @@ | ||
module( | ||
name = "cel-go", | ||
) | ||
|
||
bazel_dep( | ||
name = "bazel_skylib", | ||
version = "1.7.1", | ||
) | ||
bazel_dep( | ||
name = "gazelle", | ||
version = "0.39.1", | ||
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_go", | ||
version = "0.50.1", | ||
repo_name = "io_bazel_rules_go", | ||
) | ||
bazel_dep( | ||
name = "rules_proto", | ||
version = "6.0.0", | ||
) | ||
|
||
switched_rules = use_extension("@com_google_googleapis//:extensions.bzl", "switched_rules") | ||
switched_rules.use_languages( | ||
go = 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.gazelle_default_attributes( | ||
directives = [ | ||
"gazelle:proto disable_global", | ||
], | ||
) | ||
go_deps.gazelle_override( | ||
# Force Gazelle to wipe out the existing build files before regenerate them. | ||
build_file_generation = "on", | ||
directives = [ | ||
"gazelle:go_generate_proto false", | ||
# Provide hints to gazelle about how includes and imports map to build targets | ||
"gazelle:resolve go cel.dev/expr @dev_cel_expr//:expr", | ||
"gazelle:resolve proto go google/rpc/status.proto @org_golang_google_genproto_googleapis_rpc//status", | ||
"gazelle:resolve proto proto google/rpc/status.proto @googleapis//google/rpc:status_proto", | ||
], | ||
path = "cel.dev/expr", | ||
) | ||
go_deps.from_file(go_mod = "//:go.mod") | ||
go_deps.module( | ||
path = "gopkg.in/yaml.v3", | ||
sum = "h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=", | ||
version = "v3.0.1", | ||
) | ||
go_deps.module( | ||
path = "github.com/chzyer/readline", | ||
sum = "h1:upd/6fQk4src78LMRzh5vItIt361/o4uq553V8B5sGI=", | ||
version = "v1.5.1", | ||
) | ||
go_deps.module( | ||
path = "github.com/google/go-cmp", | ||
sum = "h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=", | ||
version = "v0.5.9", | ||
) | ||
use_repo( | ||
go_deps, | ||
"com_github_antlr4_go_antlr_v4", | ||
"com_github_chzyer_readline", | ||
"com_github_google_go_cmp", | ||
"com_github_stoewer_go_strcase", | ||
"dev_cel_expr", | ||
"in_gopkg_yaml_v3", | ||
"org_golang_google_genproto_googleapis_api", | ||
"org_golang_google_genproto_googleapis_rpc", | ||
"org_golang_google_protobuf", | ||
"org_golang_x_text", | ||
) |
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
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
Oops, something went wrong.