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

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(licenses = ["notice"])
     4  
     5  go_library(
     6      name = "cmd",
     7      srcs = [
     8          "boot.go",
     9          "capability.go",
    10          "checkpoint.go",
    11          "chroot.go",
    12          "cmd.go",
    13          "create.go",
    14          "debug.go",
    15          "delete.go",
    16          "do.go",
    17          "error.go",
    18          "events.go",
    19          "exec.go",
    20          "gofer.go",
    21          "help.go",
    22          "install.go",
    23          "kill.go",
    24          "list.go",
    25          "mitigate.go",
    26          "mitigate_extras.go",
    27          "path.go",
    28          "pause.go",
    29          "ps.go",
    30          "restore.go",
    31          "resume.go",
    32          "run.go",
    33          "spec.go",
    34          "start.go",
    35          "state.go",
    36          "statefile.go",
    37          "symbolize.go",
    38          "syscalls.go",
    39          "verity_prepare.go",
    40          "wait.go",
    41      ],
    42      visibility = [
    43          "//runsc:__subpackages__",
    44      ],
    45      deps = [
    46          "//pkg/coverage",
    47          "//pkg/log",
    48          "//pkg/p9",
    49          "//pkg/sentry/control",
    50          "//pkg/sentry/kernel",
    51          "//pkg/sentry/kernel/auth",
    52          "//pkg/sentry/platform",
    53          "//pkg/state/pretty",
    54          "//pkg/state/statefile",
    55          "//pkg/sync",
    56          "//pkg/unet",
    57          "//pkg/urpc",
    58          "//runsc/boot",
    59          "//runsc/config",
    60          "//runsc/console",
    61          "//runsc/container",
    62          "//runsc/flag",
    63          "//runsc/fsgofer",
    64          "//runsc/fsgofer/filter",
    65          "//runsc/mitigate",
    66          "//runsc/specutils",
    67          "@com_github_google_subcommands//:go_default_library",
    68          "@com_github_opencontainers_runtime_spec//specs-go:go_default_library",
    69          "@com_github_syndtr_gocapability//capability:go_default_library",
    70          "@org_golang_x_sys//unix:go_default_library",
    71      ],
    72  )
    73  
    74  go_test(
    75      name = "cmd_test",
    76      size = "small",
    77      srcs = [
    78          "capability_test.go",
    79          "delete_test.go",
    80          "exec_test.go",
    81          "gofer_test.go",
    82          "mitigate_test.go",
    83      ],
    84      data = [
    85          "//runsc",
    86      ],
    87      library = ":cmd",
    88      deps = [
    89          "//pkg/abi/linux",
    90          "//pkg/log",
    91          "//pkg/sentry/control",
    92          "//pkg/sentry/kernel/auth",
    93          "//pkg/test/testutil",
    94          "//pkg/urpc",
    95          "//runsc/config",
    96          "//runsc/container",
    97          "//runsc/mitigate",
    98          "//runsc/mitigate/mock",
    99          "//runsc/specutils",
   100          "@com_github_google_go_cmp//cmp:go_default_library",
   101          "@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
   102          "@com_github_opencontainers_runtime_spec//specs-go:go_default_library",
   103          "@com_github_syndtr_gocapability//capability:go_default_library",
   104      ],
   105  )