...

Text file src/edge-infra.dev/pkg/lib/kernel/udev/sockets/BUILD.bazel

Documentation: edge-infra.dev/pkg/lib/kernel/udev/sockets

     1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     2
     3go_library(
     4    name = "sockets",
     5    srcs = [
     6        "monitor.go",
     7        "sockets.go",
     8    ],
     9    importpath = "edge-infra.dev/pkg/lib/kernel/udev/sockets",
    10    visibility = ["//visibility:public"],
    11    deps = select({
    12        "@io_bazel_rules_go//go/platform:android": [
    13            "@org_golang_x_sys//unix",
    14        ],
    15        "@io_bazel_rules_go//go/platform:linux": [
    16            "@org_golang_x_sys//unix",
    17        ],
    18        "//conditions:default": [],
    19    }),
    20)
    21
    22go_test(
    23    name = "sockets_test",
    24    srcs = ["sockets_test.go"],
    25    embed = [":sockets"],
    26    deps = select({
    27        "@io_bazel_rules_go//go/platform:android": [
    28            "@com_github_stretchr_testify//require",
    29        ],
    30        "@io_bazel_rules_go//go/platform:linux": [
    31            "@com_github_stretchr_testify//require",
    32        ],
    33        "//conditions:default": [],
    34    }),
    35)

View as plain text