summaryrefslogtreecommitdiffhomepage
path: root/pkg/refsvfs2/BUILD
blob: 7c1a8c7925b5d95efa260f1b6adc0d5eaf922b8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# TODO(gvisor.dev/issue/1624): rename this directory/package to "refs" once VFS1
# is gone and the current refs package can be deleted.
load("//tools:defs.bzl", "go_library")
load("//tools/go_generics:defs.bzl", "go_template")

package(licenses = ["notice"])

go_template(
    name = "refs_template",
    srcs = [
        "refs_template.go",
    ],
    opt_consts = [
        "enableLogging",
    ],
    types = [
        "T",
    ],
    visibility = ["//:sandbox"],
    deps = [
        "//pkg/log",
        "//pkg/refs",
    ],
)

go_library(
    name = "refsvfs2",
    srcs = [
        "refs.go",
        "refs_map.go",
    ],
    visibility = ["//:sandbox"],
    deps = [
        "//pkg/context",
        "//pkg/log",
        "//pkg/refs",
        "//pkg/sync",
    ],
)