BUILD.bazel 1018 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "inmem_socket.go",
  6. "proxy.go",
  7. "sockets.go",
  8. "sockets_unix.go",
  9. "sockets_windows.go",
  10. "tcp_socket.go",
  11. "unix_socket.go",
  12. ],
  13. importmap = "go-common/vendor/github.com/docker/go-connections/sockets",
  14. importpath = "github.com/docker/go-connections/sockets",
  15. visibility = ["//visibility:public"],
  16. deps = [
  17. "@org_golang_x_net//proxy:go_default_library",
  18. ] + select({
  19. "@io_bazel_rules_go//go/platform:windows": [
  20. "//vendor/github.com/Microsoft/go-winio:go_default_library",
  21. ],
  22. "//conditions:default": [],
  23. }),
  24. )
  25. filegroup(
  26. name = "package-srcs",
  27. srcs = glob(["**"]),
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:private"],
  30. )
  31. filegroup(
  32. name = "all-srcs",
  33. srcs = [":package-srcs"],
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:public"],
  36. )