gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/runsc/cgroup/BUILD (about)

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(
     4      default_applicable_licenses = ["//:license"],
     5      licenses = ["notice"],
     6  )
     7  
     8  go_library(
     9      name = "cgroup",
    10      srcs = [
    11          "cgroup.go",
    12          "cgroup_v2.go",
    13          "systemd.go",
    14      ],
    15      visibility = ["//:sandbox"],
    16      deps = [
    17          "//pkg/cleanup",
    18          "//pkg/log",
    19          "@com_github_cenkalti_backoff//:go_default_library",
    20          "@com_github_coreos_go_systemd_v22//dbus:go_default_library",
    21          "@com_github_godbus_dbus_v5//:go_default_library",
    22          "@com_github_opencontainers_runtime_spec//specs-go:go_default_library",
    23          "@org_golang_x_sync//errgroup:go_default_library",
    24          "@org_golang_x_sys//unix:go_default_library",
    25      ],
    26  )
    27  
    28  go_test(
    29      name = "cgroup_test",
    30      size = "small",
    31      srcs = [
    32          "cgroup_test.go",
    33          "cgroup_v2_test.go",
    34          "systemd_test.go",
    35      ],
    36      library = ":cgroup",
    37      tags = ["local"],
    38      deps = [
    39          "//pkg/test/testutil",
    40          "@com_github_coreos_go_systemd_v22//dbus:go_default_library",
    41          "@com_github_godbus_dbus_v5//:go_default_library",
    42          "@com_github_google_go_cmp//cmp:go_default_library",
    43          "@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
    44          "@com_github_opencontainers_runtime_spec//specs-go:go_default_library",
    45      ],
    46  )