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