forked from google/cel-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
117 lines (99 loc) · 3.44 KB
/
WORKSPACE
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
workspace(name = "cel_go")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
http_archive(
name = "io_bazel_rules_go",
urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.18.6/rules_go-0.18.6.tar.gz"],
sha256 = "f04d2373bcaf8aa09bccb08a98a57e721306c8f6043a2a0ee610fd6853dcde3d"
)
http_archive(
name = "bazel_gazelle",
urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.17.0/bazel-gazelle-0.17.0.tar.gz"],
sha256 = "3c681998538231a2d24d0c07ed5a7658cb72bfb5fd4bf9911157c0e9ac6a2687",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@bazel_gazelle//:deps.bzl", "go_repository")
# Do *not* call *_dependencies(), etc, yet. See comment at the end.
go_repository(
name = "org_golang_google_genproto",
build_file_proto_mode = "disable",
commit = "bd91e49a0898e27abb88c339b432fa53d7497ac0",
importpath = "google.golang.org/genproto",
)
go_repository(
name = "com_github_antlr",
tag = "4.7.2",
importpath = "github.com/antlr/antlr4",
)
git_repository(
name = "com_google_cel_spec",
commit = "b154461b3a037f9654852087ef96be2b756871a0", #PR #93
remote = "https://github.com/google/cel-spec.git",
)
# Required to use embedded BUILD.bazel file in googleapis/google/rpc
git_repository(
name = "io_grpc_grpc_java",
remote = "https://github.com/grpc/grpc-java.git",
tag = "v1.22.1",
)
new_git_repository(
name = "com_google_googleapis",
remote = "https://github.com/googleapis/googleapis.git",
commit = "980cdfa876e54b1db4395617e14037612af25466",
build_file_content = """
load('@io_bazel_rules_go//proto:def.bzl', 'go_proto_library')
cc_proto_library(
name = 'cc_rpc_status',
deps = ['//google/rpc:status_proto'],
visibility = ['//visibility:public'],
)
cc_proto_library(
name = 'cc_rpc_code',
deps = ['//google/rpc:code_proto'],
visibility = ['//visibility:public'],
)
cc_proto_library(
name = 'cc_expr_v1beta1',
deps = [
'//google/api/expr/v1beta1/eval_proto',
'//google/api/expr/v1beta1/value_proto',
],
visibility = ['//visibility:public'],
)
go_proto_library(
name = 'rpc_status_go_proto',
# TODO: Switch to the correct import path when bazel rules fixed.
#importpath = 'google.golang.org/genproto/googleapis/rpc/status',
importpath = 'github.com/googleapis/googleapis/google/rpc',
proto = '//google/rpc:status_proto',
visibility = ['//visibility:public'],
)
go_proto_library(
name = 'expr_v1beta1_go_proto',
importpath = 'google.golang.org/genproto/googleapis/api/expr/v1beta1',
proto = '//google/api/expr/v1beta1',
visibility = ['//visibility:public'],
deps = ['@com_google_googleapis//:rpc_status_go_proto'],
)
"""
)
go_repository(
name = "org_golang_google_grpc",
importpath = "google.golang.org/grpc",
tag = "v1.11.3",
remote = "https://github.com/grpc/grpc-go.git",
vcs = "git",
)
go_repository(
name = "org_golang_x_text",
importpath = "golang.org/x/text",
tag = "v0.3.0",
remote = "https://github.com/golang/text",
vcs = "git",
)
# Run the dependencies at the end. These will silently try to import some
# of the above repositories but at different versions, so ours must come first.
go_rules_dependencies()
go_register_toolchains()
gazelle_dependencies()