-
Notifications
You must be signed in to change notification settings - Fork 222
/
MODULE.bazel
89 lines (85 loc) · 2.42 KB
/
MODULE.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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",
)