8e5b17cf13
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
59 lines
1.3 KiB
Text
59 lines
1.3 KiB
Text
package(default_visibility = ["//visibility:public"])
|
|
|
|
licenses(["notice"])
|
|
|
|
load(
|
|
"@io_bazel_rules_go//go:def.bzl",
|
|
"go_library",
|
|
"go_test",
|
|
)
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"json.go",
|
|
"meta.go",
|
|
],
|
|
tags = ["automanaged"],
|
|
deps = [
|
|
"//pkg/runtime:go_default_library",
|
|
"//pkg/runtime/schema:go_default_library",
|
|
"//pkg/runtime/serializer/recognizer:go_default_library",
|
|
"//pkg/util/framer:go_default_library",
|
|
"//pkg/util/yaml:go_default_library",
|
|
"//vendor:github.com/ghodss/yaml",
|
|
"//vendor:github.com/ugorji/go/codec",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = ["meta_test.go"],
|
|
library = ":go_default_library",
|
|
tags = ["automanaged"],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_xtest",
|
|
srcs = ["json_test.go"],
|
|
tags = ["automanaged"],
|
|
deps = [
|
|
"//pkg/runtime:go_default_library",
|
|
"//pkg/runtime/schema:go_default_library",
|
|
"//pkg/runtime/serializer/json:go_default_library",
|
|
"//pkg/util/diff:go_default_library",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [":package-srcs"],
|
|
tags = ["automanaged"],
|
|
)
|