github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/refsvfs2/BUILD (about)

     1  # TODO(gvisor.dev/issue/1624): rename this directory/package to "refs" once VFS1
     2  # is gone and the current refs package can be deleted.
     3  load("//tools:defs.bzl", "go_library")
     4  load("//tools/go_generics:defs.bzl", "go_template")
     5  
     6  package(licenses = ["notice"])
     7  
     8  go_template(
     9      name = "refs_template",
    10      srcs = [
    11          "refs_template.go",
    12      ],
    13      opt_consts = [
    14          "enableLogging",
    15      ],
    16      types = [
    17          "T",
    18      ],
    19      visibility = ["//:sandbox"],
    20      deps = [
    21          "//pkg/log",
    22          "//pkg/refs",
    23      ],
    24  )
    25  
    26  go_library(
    27      name = "refsvfs2",
    28      srcs = [
    29          "refs.go",
    30          "refs_map.go",
    31      ],
    32      visibility = ["//:sandbox"],
    33      deps = [
    34          "//pkg/context",
    35          "//pkg/log",
    36          "//pkg/refs",
    37          "//pkg/sync",
    38      ],
    39  )