github.phpd.cn/thought-machine/please@v12.2.0+incompatible/src/update/BUILD (about) 1 go_library( 2 name = 'update', 3 srcs = [ 4 'clean.go', 5 'update.go', 6 'verify.go', 7 ':pubkey', 8 ], 9 deps = [ 10 '//src/cli', 11 '//src/core', 12 '//third_party/go:logging', 13 '//third_party/go:openpgp', 14 '//third_party/go:prompter', 15 '//third_party/go:semver', 16 ], 17 visibility = ['PUBLIC'], 18 ) 19 20 go_bindata( 21 name = 'pubkey', 22 srcs = ['pubkey.gpg.asc'], 23 ) 24 25 go_test( 26 name = 'update_test', 27 srcs = ['update_test.go'], 28 data = [ 29 ':test_tarball', 30 '//src:please', 31 ], 32 deps = [ 33 ':update', 34 '//src/cli', 35 '//third_party/go:logging', 36 '//third_party/go:testify', 37 ], 38 ) 39 40 go_test( 41 name = 'verify_test', 42 srcs = ['verify_test.go'], 43 data = ['test_data'], 44 deps = [ 45 ':update', 46 '//third_party/go:testify', 47 ], 48 ) 49 50 tarball( 51 name = 'test_tarball', 52 srcs = [ 53 '//src:please', 54 ], 55 out = 'please_test.tar.gz', 56 subdir = 'please', 57 )