github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/rule/BUILD.bazel (about)

     1  load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     2  
     3  go_library(
     4      name = "rule",
     5      srcs = [
     6          "directives.go",
     7          "expr.go",
     8          "merge.go",
     9          "platform.go",
    10          "platform_strings.go",
    11          "rule.go",
    12          "sort_labels.go",
    13          "types.go",
    14          "value.go",
    15      ],
    16      importpath = "github.com/bazelbuild/bazel-gazelle/rule",
    17      visibility = ["//visibility:public"],
    18      deps = [
    19          "//label",
    20          "@com_github_bazelbuild_buildtools//build",
    21          "@com_github_bazelbuild_buildtools//tables",
    22      ],
    23  )
    24  
    25  go_test(
    26      name = "rule_test",
    27      srcs = [
    28          "directives_test.go",
    29          "merge_test.go",
    30          "rule_test.go",
    31          "value_test.go",
    32      ],
    33      embed = [":rule"],
    34      deps = [
    35          "//label",
    36          "@com_github_bazelbuild_buildtools//build",
    37          "@com_github_google_go_cmp//cmp",
    38      ],
    39  )
    40  
    41  filegroup(
    42      name = "all_files",
    43      testonly = True,
    44      srcs = [
    45          "BUILD.bazel",
    46          "directives.go",
    47          "directives_test.go",
    48          "expr.go",
    49          "merge.go",
    50          "merge_test.go",
    51          "platform.go",
    52          "platform_strings.go",
    53          "rule.go",
    54          "rule_test.go",
    55          "sort_labels.go",
    56          "types.go",
    57          "value.go",
    58          "value_test.go",
    59      ],
    60      visibility = ["//visibility:public"],
    61  )
    62  
    63  alias(
    64      name = "go_default_library",
    65      actual = ":rule",
    66      visibility = ["//visibility:public"],
    67  )