-
Notifications
You must be signed in to change notification settings - Fork 257
Expand file tree
/
Copy pathBUILD.bazel
More file actions
61 lines (57 loc) · 1.29 KB
/
BUILD.bazel
File metadata and controls
61 lines (57 loc) · 1.29 KB
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
load("@gazelle//:def.bzl", "gazelle")
load("@rules_go//go:def.bzl", "go_library", "go_test")
# gazelle:prefix github.com/google/go-jsonnet
gazelle(
name = "gazelle",
)
# keep: support old target name.
alias(
name = "go_default_library",
actual = ":go-jsonnet",
visibility = ["//visibility:public"],
)
go_library(
name = "go-jsonnet",
srcs = [
"builtins.go",
"debugger.go",
"doc.go",
"error_formatter.go",
"imports.go",
"interpreter.go",
"runtime_error.go",
"thunks.go",
"util.go",
"value.go",
"vm.go",
"yaml.go",
],
importpath = "github.com/google/go-jsonnet",
visibility = ["//visibility:public"],
deps = [
"//ast",
"//astgen",
"//internal/errors",
"//internal/parser",
"//internal/program",
"//toolutils",
"@io_k8s_sigs_yaml//:yaml",
"@org_golang_x_crypto//sha3",
],
)
go_test(
name = "go-jsonnet_test",
srcs = [
"builtins_benchmark_test.go",
"interpreter_test.go",
"jsonnet_test.go",
"main_test.go",
],
data = glob(["testdata/**"]),
embed = [":go-jsonnet"],
deps = [
"//ast",
"//internal/parser",
"//internal/testutils",
],
)