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

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