BUILD 749 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = ["env.go"],
  10. importpath = "go-common/library/conf/env",
  11. tags = ["automanaged"],
  12. visibility = ["//visibility:public"],
  13. )
  14. filegroup(
  15. name = "package-srcs",
  16. srcs = glob(["**"]),
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:private"],
  19. )
  20. filegroup(
  21. name = "all-srcs",
  22. srcs = [":package-srcs"],
  23. tags = ["automanaged"],
  24. visibility = ["//visibility:public"],
  25. )
  26. go_test(
  27. name = "go_default_test",
  28. srcs = ["env_test.go"],
  29. embed = [":go_default_library"],
  30. rundir = ".",
  31. tags = ["automanaged"],
  32. )