github.com/abayer/test-infra@v0.0.5/velodrome/sql/testing/BUILD.bazel (about)

     1  package(default_visibility = ["//visibility:public"])
     2  
     3  load(
     4      "@io_bazel_rules_go//go:def.bzl",
     5      "go_library",
     6      "go_test",
     7  )
     8  
     9  go_test(
    10      name = "go_default_test",
    11      srcs = ["sqlite_test.go"],
    12      embed = [":go_default_library"],
    13      deps = ["//velodrome/sql:go_default_library"],
    14  )
    15  
    16  go_library(
    17      name = "go_default_library",
    18      srcs = ["sqlite.go"],
    19      importpath = "k8s.io/test-infra/velodrome/sql/testing",
    20      deps = [
    21          "//velodrome/sql:go_default_library",
    22          "//vendor/github.com/jinzhu/gorm:go_default_library",
    23          "//vendor/github.com/jinzhu/gorm/dialects/sqlite:go_default_library",
    24      ],
    25  )
    26  
    27  filegroup(
    28      name = "package-srcs",
    29      srcs = glob(["**"]),
    30      tags = ["automanaged"],
    31      visibility = ["//visibility:private"],
    32  )
    33  
    34  filegroup(
    35      name = "all-srcs",
    36      srcs = [":package-srcs"],
    37      tags = ["automanaged"],
    38  )