BUILD.bazel 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "association.go",
  6. "callback.go",
  7. "callback_create.go",
  8. "callback_delete.go",
  9. "callback_query.go",
  10. "callback_query_preload.go",
  11. "callback_row_query.go",
  12. "callback_save.go",
  13. "callback_update.go",
  14. "dialect.go",
  15. "dialect_common.go",
  16. "dialect_mysql.go",
  17. "dialect_postgres.go",
  18. "dialect_sqlite3.go",
  19. "errors.go",
  20. "field.go",
  21. "interface.go",
  22. "join_table_handler.go",
  23. "logger.go",
  24. "main.go",
  25. "model.go",
  26. "model_struct.go",
  27. "scope.go",
  28. "search.go",
  29. "utils.go",
  30. ],
  31. importmap = "go-common/vendor/github.com/jinzhu/gorm",
  32. importpath = "github.com/jinzhu/gorm",
  33. visibility = ["//visibility:public"],
  34. deps = ["//vendor/github.com/jinzhu/inflection:go_default_library"],
  35. )
  36. filegroup(
  37. name = "package-srcs",
  38. srcs = glob(["**"]),
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:private"],
  41. )
  42. filegroup(
  43. name = "all-srcs",
  44. srcs = [":package-srcs"],
  45. tags = ["automanaged"],
  46. visibility = ["//visibility:public"],
  47. )