...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "devices",
5 srcs = [
6 "crawler.go",
7 "devices.go",
8 "doc.go",
9 "matcher.go",
10 "rules.go",
11 "testenvs.go",
12 ],
13 importpath = "edge-infra.dev/pkg/lib/kernel/devices",
14 visibility = ["//visibility:public"],
15 deps = [
16 "//pkg/lib/filesystem",
17 "//pkg/lib/kernel/udev",
18 "@com_github_gobwas_glob//:glob",
19 "@org_golang_x_sys//unix",
20 ],
21)
22
23go_test(
24 name = "devices_test",
25 srcs = [
26 "crawler_test.go",
27 "devices_suite_test.go",
28 "matcher_test.go",
29 ],
30 data = glob(["testdata/**"]),
31 embed = [":devices"],
32 deps = [
33 "@com_github_onsi_ginkgo_v2//:ginkgo",
34 "@com_github_onsi_gomega//:gomega",
35 ],
36)
View as plain text