cert-manager/pkg/util/BUILD.bazel
James Munnelly b1f145625e Set up Bazel workspace with git status and pass ldflags
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-09-13 11:24:52 +01:00

48 lines
1.0 KiB
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = [
"context.go",
"filter.go",
"useragent_roundtripper.go",
"util.go",
"version.go",
],
importpath = "github.com/jetstack/cert-manager/pkg/util",
visibility = ["//visibility:public"],
x_defs = {
"AppVersion": "{STABLE_APP_VERSION}",
"AppGitCommit": "{STABLE_APP_GIT_COMMIT}",
"AppGitState": "{STABLE_APP_GIT_STATE}",
},
)
go_test(
name = "go_default_test",
srcs = [
"filter_test.go",
"util_test.go",
],
embed = [":go_default_library"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//pkg/util/errors:all-srcs",
"//pkg/util/kube:all-srcs",
"//pkg/util/pki:all-srcs",
],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)