load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "devices", srcs = [ "crawler.go", "devices.go", "doc.go", "matcher.go", "rules.go", "testenvs.go", ], importpath = "edge-infra.dev/pkg/lib/kernel/devices", visibility = ["//visibility:public"], deps = [ "//pkg/lib/filesystem", "//pkg/lib/kernel/udev", "@com_github_gobwas_glob//:glob", "@org_golang_x_sys//unix", ], ) go_test( name = "devices_test", srcs = [ "crawler_test.go", "devices_suite_test.go", "matcher_test.go", ], data = glob(["testdata/**"]), embed = [":devices"], deps = [ "@com_github_onsi_ginkgo_v2//:ginkgo", "@com_github_onsi_gomega//:gomega", ], )