github.com/sercand/please@v13.4.0+incompatible/src/cache/BUILD (about) 1 go_library( 2 name = "cache", 3 srcs = glob( 4 ["*.go"], 5 exclude = [ 6 "*_test.go", 7 ], 8 ), 9 visibility = ["PUBLIC"], 10 deps = [ 11 "//src/cache/proto:rpc_cache", 12 "//src/cache/tools", 13 "//src/cli", 14 "//src/core", 15 "//src/fs", 16 "//third_party/go:atime", 17 "//third_party/go:grpc", 18 "//third_party/go:humanize", 19 "//third_party/go:logging", 20 ], 21 ) 22 23 go_test( 24 name = "rpc_cache_test", 25 srcs = ["rpc_cache_test.go"], 26 data = [":test_data"], 27 labels = ["no_cirrus"], 28 deps = [ 29 ":cache", 30 "//third_party/go:grpc", 31 "//third_party/go:logging", 32 "//third_party/go:testify", 33 "//tools/cache/server", 34 ], 35 ) 36 37 filegroup( 38 name = "test_data", 39 srcs = ["test_data"], 40 test_only = True, 41 visibility = ["//tools/cache/..."], 42 ) 43 44 go_test( 45 name = "http_cache_test", 46 srcs = ["http_cache_test.go"], 47 data = [":test_data"], 48 deps = [ 49 ":cache", 50 "//third_party/go:logging", 51 "//tools/cache/server", 52 ], 53 ) 54 55 go_test( 56 name = "async_cache_test", 57 srcs = ["async_cache_test.go"], 58 deps = [ 59 ":cache", 60 "//third_party/go:testify", 61 ], 62 ) 63 64 go_test( 65 name = "dir_cache_test", 66 srcs = ["dir_cache_test.go"], 67 deps = [ 68 ":cache", 69 "//third_party/go:testify", 70 ], 71 )