BUILD.bazel 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "canal.go",
  6. "config.go",
  7. "dump.go",
  8. "handler.go",
  9. "master.go",
  10. "rows.go",
  11. "sync.go",
  12. ],
  13. importmap = "go-common/vendor/github.com/siddontang/go-mysql/canal",
  14. importpath = "github.com/siddontang/go-mysql/canal",
  15. visibility = ["//visibility:public"],
  16. deps = [
  17. "//vendor/github.com/BurntSushi/toml:go_default_library",
  18. "//vendor/github.com/juju/errors:go_default_library",
  19. "//vendor/github.com/satori/go.uuid:go_default_library",
  20. "//vendor/github.com/siddontang/go-mysql/client:go_default_library",
  21. "//vendor/github.com/siddontang/go-mysql/dump:go_default_library",
  22. "//vendor/github.com/siddontang/go-mysql/mysql:go_default_library",
  23. "//vendor/github.com/siddontang/go-mysql/replication:go_default_library",
  24. "//vendor/github.com/siddontang/go-mysql/schema:go_default_library",
  25. "//vendor/github.com/sirupsen/logrus:go_default_library",
  26. ],
  27. )
  28. filegroup(
  29. name = "package-srcs",
  30. srcs = glob(["**"]),
  31. tags = ["automanaged"],
  32. visibility = ["//visibility:private"],
  33. )
  34. filegroup(
  35. name = "all-srcs",
  36. srcs = [":package-srcs"],
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. )