...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "filesystem",
5 srcs = [
6 "compare.go",
7 "exists.go",
8 "owners.go",
9 ],
10 importpath = "edge-infra.dev/pkg/lib/filesystem",
11 visibility = ["//visibility:public"],
12 deps = ["@org_golang_x_sys//unix"],
13)
14
15go_test(
16 name = "filesystem_test",
17 srcs = [
18 "compare_test.go",
19 "exists_test.go",
20 "filesystem_test.go",
21 ],
22 data = glob(["testdata/**"]),
23 embed = [":filesystem"],
24 deps = [
25 "@com_github_onsi_ginkgo_v2//:ginkgo",
26 "@com_github_onsi_gomega//:gomega",
27 ],
28)
View as plain text