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

     1  load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     2  
     3  go_library(
     4      name = "repo",
     5      srcs = [
     6          "remote.go",
     7          "repo.go",
     8      ],
     9      importpath = "github.com/bazelbuild/bazel-gazelle/repo",
    10      visibility = ["//visibility:public"],
    11      deps = [
    12          "//label",
    13          "//pathtools",
    14          "//rule",
    15          "@org_golang_x_mod//modfile",
    16          "@org_golang_x_tools_go_vcs//:vcs",
    17      ],
    18  )
    19  
    20  go_test(
    21      name = "repo_test",
    22      srcs = [
    23          "remote_test.go",
    24          "repo_test.go",
    25          "stubs_test.go",
    26      ],
    27      embed = [":repo"],
    28      deps = [
    29          "//pathtools",
    30          "//rule",
    31          "//testtools",
    32          "@org_golang_x_tools_go_vcs//:vcs",
    33      ],
    34  )
    35  
    36  filegroup(
    37      name = "all_files",
    38      testonly = True,
    39      srcs = [
    40          "BUILD.bazel",
    41          "remote.go",
    42          "remote_test.go",
    43          "repo.go",
    44          "repo_test.go",
    45          "stubs_test.go",
    46      ],
    47      visibility = ["//visibility:public"],
    48  )
    49  
    50  alias(
    51      name = "go_default_library",
    52      actual = ":repo",
    53      visibility = ["//visibility:public"],
    54  )