github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/runsc/fsgofer/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package(licenses = ["notice"]) 4 5 go_library( 6 name = "fsgofer", 7 srcs = [ 8 "fsgofer.go", 9 "fsgofer_amd64_unsafe.go", 10 "fsgofer_arm64_unsafe.go", 11 "fsgofer_unsafe.go", 12 ], 13 visibility = ["//runsc:__subpackages__"], 14 deps = [ 15 "//pkg/cleanup", 16 "//pkg/fd", 17 "//pkg/log", 18 "//pkg/p9", 19 "//pkg/sync", 20 "//pkg/syserr", 21 "@org_golang_x_sys//unix:go_default_library", 22 ], 23 ) 24 25 go_test( 26 name = "fsgofer_test", 27 size = "small", 28 srcs = ["fsgofer_test.go"], 29 library = ":fsgofer", 30 deps = [ 31 "//pkg/fd", 32 "//pkg/log", 33 "//pkg/p9", 34 "//pkg/test/testutil", 35 "//runsc/specutils", 36 "@com_github_syndtr_gocapability//capability:go_default_library", 37 "@org_golang_x_sys//unix:go_default_library", 38 ], 39 )