gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/tools/parsers/BUILD (about) 1 load("//tools:defs.bzl", "go_binary", "go_library", "go_test") 2 3 package( 4 default_applicable_licenses = ["//:license"], 5 licenses = ["notice"], 6 ) 7 8 go_test( 9 name = "parsers_test", 10 size = "small", 11 srcs = ["go_parser_test.go"], 12 library = ":parsers", 13 nogo = False, 14 deps = [ 15 "//tools/bigquery", 16 "@com_github_google_go_cmp//cmp:go_default_library", 17 ], 18 ) 19 20 go_library( 21 name = "parsers", 22 testonly = 1, 23 srcs = [ 24 "go_parser.go", 25 ], 26 nogo = False, 27 visibility = ["//:sandbox"], 28 deps = [ 29 "//test/benchmarks/tools", 30 "//tools/bigquery", 31 ], 32 ) 33 34 go_binary( 35 name = "parser", 36 testonly = 1, 37 srcs = [ 38 "parser_main.go", 39 "version.go", 40 ], 41 nogo = False, 42 x_defs = {"main.version": "{STABLE_VERSION}"}, 43 deps = [ 44 ":parsers", 45 "//runsc/flag", 46 "//tools/bigquery", 47 ], 48 )