| 1 |
# Copyright 2022 Google LLC |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
# you may not use this file except in compliance with the License. |
| 5 |
# You may obtain a copy of the License at |
| 6 |
# |
| 7 |
# https://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
# See the License for the specific language governing permissions and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") |
| 16 |
|
| 17 |
package( |
| 18 |
default_visibility = ["//repl:__subpackages__"], |
| 19 |
licenses = ["notice"], |
| 20 |
) |
| 21 |
|
| 22 |
go_library( |
| 23 |
name = "go_default_library", |
| 24 |
srcs = [ |
| 25 |
"commands.go", |
| 26 |
"evaluator.go", |
| 27 |
"typefmt.go", |
| 28 |
], |
| 29 |
importpath = "github.com/google/cel-go/repl", |
| 30 |
deps = [ |
| 31 |
"//cel:go_default_library", |
| 32 |
"//checker:go_default_library", |
| 33 |
"//checker/decls:go_default_library", |
| 34 |
"//common/env:go_default_library", |
| 35 |
"//common/functions:go_default_library", |
| 36 |
"//common/types:go_default_library", |
| 37 |
"//common/types/ref:go_default_library", |
| 38 |
"//ext:go_default_library", |
| 39 |
"//repl/parser:go_default_library", |
| 40 |
"@com_github_antlr4_go_antlr_v4//:go_default_library", |
| 41 |
"@dev_cel_expr//conformance/proto2:go_default_library", |
| 42 |
"@dev_cel_expr//conformance/proto3:go_default_library", |
| 43 |
"@in_yaml_go_yaml_v3//:go_default_library", |
| 44 |
"@org_golang_google_genproto_googleapis_api//expr/v1alpha1:go_default_library", |
| 45 |
"@org_golang_google_genproto_googleapis_rpc//context/attribute_context:go_default_library", |
| 46 |
"@org_golang_google_protobuf//encoding/prototext:go_default_library", |
| 47 |
"@org_golang_google_protobuf//proto:go_default_library", |
| 48 |
"@org_golang_google_protobuf//reflect/protodesc:go_default_library", |
| 49 |
"@org_golang_google_protobuf//reflect/protoreflect:go_default_library", |
| 50 |
"@org_golang_google_protobuf//types/descriptorpb:go_default_library", |
| 51 |
], |
| 52 |
) |
| 53 |
|
| 54 |
go_test( |
| 55 |
name = "go_default_test", |
| 56 |
size = "small", |
| 57 |
srcs = [ |
| 58 |
"commands_test.go", |
| 59 |
"evaluator_test.go", |
| 60 |
"typefmt_test.go", |
| 61 |
], |
| 62 |
data = glob(["testdata/**"]), |
| 63 |
embed = [":go_default_library"], |
| 64 |
deps = [ |
| 65 |
"//cel:go_default_library", |
| 66 |
"//test/proto2pb:go_default_library", |
| 67 |
"@com_github_google_go_cmp//cmp:go_default_library", |
| 68 |
"@org_golang_google_genproto_googleapis_api//expr/v1alpha1:go_default_library", |
| 69 |
"@org_golang_google_protobuf//proto:go_default_library", |
| 70 |
], |
| 71 |
) |