github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/third_party/org_golang_x_tools/imports/BUILD.bazel.in (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          "fastwalk.go",
     7          "fix.go",
     8          "imports.go",
     9          "sortimports.go",
    10          "zstdlib.go",
    11      ] + select({
    12          "@io_bazel_rules_go//go/platform:android": [
    13              "fastwalk_portable.go",
    14          ],
    15          "@io_bazel_rules_go//go/platform:darwin": [
    16              "fastwalk_dirent_ino.go",
    17              "fastwalk_unix.go",
    18          ],
    19          "@io_bazel_rules_go//go/platform:dragonfly": [
    20              "fastwalk_portable.go",
    21          ],
    22          "@io_bazel_rules_go//go/platform:freebsd": [
    23              "fastwalk_dirent_fileno.go",
    24              "fastwalk_unix.go",
    25          ],
    26          "@io_bazel_rules_go//go/platform:linux": [
    27              "fastwalk_dirent_ino.go",
    28              "fastwalk_unix.go",
    29          ],
    30          "@io_bazel_rules_go//go/platform:nacl": [
    31              "fastwalk_portable.go",
    32          ],
    33          "@io_bazel_rules_go//go/platform:netbsd": [
    34              "fastwalk_dirent_fileno.go",
    35              "fastwalk_unix.go",
    36          ],
    37          "@io_bazel_rules_go//go/platform:openbsd": [
    38              "fastwalk_dirent_fileno.go",
    39              "fastwalk_unix.go",
    40          ],
    41          "@io_bazel_rules_go//go/platform:plan9": [
    42              "fastwalk_portable.go",
    43          ],
    44          "@io_bazel_rules_go//go/platform:solaris": [
    45              "fastwalk_portable.go",
    46          ],
    47          "@io_bazel_rules_go//go/platform:windows": [
    48              "fastwalk_portable.go",
    49          ],
    50          "//conditions:default": [],
    51      }),
    52      importpath = "golang.org/x/tools/imports",
    53      visibility = ["//visibility:public"],
    54      deps = [
    55          "//go/ast/astutil:go_default_library",
    56      ],
    57  )
    58  
    59  go_test(
    60      name = "go_default_test",
    61      srcs = [
    62          "fastwalk_test.go",
    63          "fix_test.go",
    64      ],
    65      embed = [":go_default_library"],
    66  )