| 1 |
# Copyright 2025 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 = ["//visibility:public"], |
| 19 |
licenses = ["notice"], # Apache 2.0 |
| 20 |
) |
| 21 |
|
| 22 |
go_library( |
| 23 |
name = "go_default_library", |
| 24 |
srcs = [ |
| 25 |
"env.go", |
| 26 |
], |
| 27 |
importpath = "github.com/google/cel-go/common/env", |
| 28 |
deps = [ |
| 29 |
"//common:go_default_library", |
| 30 |
"//common/decls:go_default_library", |
| 31 |
"//common/types:go_default_library", |
| 32 |
], |
| 33 |
) |
| 34 |
|
| 35 |
go_test( |
| 36 |
name = "go_default_test", |
| 37 |
size = "small", |
| 38 |
srcs = [ |
| 39 |
"env_test.go", |
| 40 |
], |
| 41 |
data = glob(["testdata/**"]), |
| 42 |
embed = [":go_default_library"], |
| 43 |
deps = [ |
| 44 |
"//common/decls:go_default_library", |
| 45 |
"//common/operators:go_default_library", |
| 46 |
"//common/overloads:go_default_library", |
| 47 |
"//common/types:go_default_library", |
| 48 |
"@in_yaml_go_yaml_v3//:go_default_library", |
| 49 |
], |
| 50 |
) |