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

     1  load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     2  
     3  go_library(
     4      name = "label",
     5      srcs = ["label.go"],
     6      importpath = "github.com/bazelbuild/bazel-gazelle/label",
     7      visibility = ["//visibility:public"],
     8      deps = [
     9          "//pathtools",
    10          "@com_github_bazelbuild_buildtools//build",
    11      ],
    12  )
    13  
    14  go_test(
    15      name = "label_test",
    16      srcs = ["label_test.go"],
    17      embed = [":label"],
    18  )
    19  
    20  filegroup(
    21      name = "all_files",
    22      testonly = True,
    23      srcs = [
    24          "BUILD.bazel",
    25          "label.go",
    26          "label_test.go",
    27      ],
    28      visibility = ["//visibility:public"],
    29  )
    30  
    31  alias(
    32      name = "go_default_library",
    33      actual = ":label",
    34      visibility = ["//visibility:public"],
    35  )