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

     1  load("//tools:defs.bzl", "go_library", "go_test", "more_shards")
     2  
     3  package(licenses = ["notice"])
     4  
     5  go_library(
     6      name = "container",
     7      srcs = [
     8          "container.go",
     9          "hook.go",
    10          "state_file.go",
    11          "status.go",
    12      ],
    13      visibility = [
    14          "//runsc:__subpackages__",
    15          "//test:__subpackages__",
    16      ],
    17      deps = [
    18          "//pkg/abi/linux",
    19          "//pkg/cleanup",
    20          "//pkg/log",
    21          "//pkg/sentry/control",
    22          "//pkg/sentry/sighandling",
    23          "//pkg/sync",
    24          "//runsc/boot",
    25          "//runsc/cgroup",
    26          "//runsc/config",
    27          "//runsc/console",
    28          "//runsc/sandbox",
    29          "//runsc/specutils",
    30          "@com_github_cenkalti_backoff//:go_default_library",
    31          "@com_github_gofrs_flock//:go_default_library",
    32          "@com_github_opencontainers_runtime_spec//specs-go:go_default_library",
    33          "@org_golang_x_sys//unix:go_default_library",
    34      ],
    35  )
    36  
    37  go_test(
    38      name = "container_test",
    39      size = "large",
    40      srcs = [
    41          "console_test.go",
    42          "container_norace_test.go",
    43          "container_race_test.go",
    44          "container_test.go",
    45          "multi_container_test.go",
    46          "shared_volume_test.go",
    47      ],
    48      data = [
    49          "//runsc",
    50          "//test/cmd/test_app",
    51      ],
    52      library = ":container",
    53      shard_count = more_shards,
    54      tags = ["requires-kvm"],
    55      deps = [
    56          "//pkg/abi/linux",
    57          "//pkg/bits",
    58          "//pkg/cleanup",
    59          "//pkg/log",
    60          "//pkg/sentry/control",
    61          "//pkg/sentry/kernel",
    62          "//pkg/sentry/kernel/auth",
    63          "//pkg/sync",
    64          "//pkg/test/testutil",
    65          "//pkg/unet",
    66          "//pkg/urpc",
    67          "//runsc/boot",
    68          "//runsc/boot/platforms",
    69          "//runsc/config",
    70          "//runsc/specutils",
    71          "@com_github_cenkalti_backoff//:go_default_library",
    72          "@com_github_kr_pty//:go_default_library",
    73          "@com_github_opencontainers_runtime_spec//specs-go:go_default_library",
    74          "@org_golang_x_sys//unix:go_default_library",
    75      ],
    76  )