github.com/abayer/test-infra@v0.0.5/ghproxy/ghcache/BUILD.bazel (about)

     1  load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     2  
     3  go_library(
     4      name = "go_default_library",
     5      srcs = [
     6          "coalesce.go",
     7          "ghcache.go",
     8      ],
     9      importpath = "k8s.io/test-infra/ghproxy/ghcache",
    10      visibility = ["//visibility:public"],
    11      deps = [
    12          "//vendor/github.com/gregjones/httpcache:go_default_library",
    13          "//vendor/github.com/gregjones/httpcache/diskcache:go_default_library",
    14          "//vendor/github.com/peterbourgon/diskv:go_default_library",
    15          "//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
    16          "//vendor/github.com/sirupsen/logrus:go_default_library",
    17      ],
    18  )
    19  
    20  filegroup(
    21      name = "package-srcs",
    22      srcs = glob(["**"]),
    23      tags = ["automanaged"],
    24      visibility = ["//visibility:private"],
    25  )
    26  
    27  filegroup(
    28      name = "all-srcs",
    29      srcs = [":package-srcs"],
    30      tags = ["automanaged"],
    31      visibility = ["//visibility:public"],
    32  )
    33  
    34  go_test(
    35      name = "go_default_test",
    36      srcs = ["coalesce_test.go"],
    37      embed = [":go_default_library"],
    38  )