1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3go_library( 4 name = "go_default_library", 5 srcs = ["gs.go"], 6 importpath = "github.com/bazelbuild/rules_go/examples/proto", 7 visibility = ["//visibility:public"], 8 deps = [ 9 "//tests/legacy/examples/proto/gostyle:gostyle_go_proto", 10 "//tests/legacy/examples/proto/lib:lib_go_proto", 11 ], 12) 13 14go_test( 15 name = "proto_test", 16 size = "small", 17 srcs = ["proto_test.go"], 18 pure = "off", 19 deps = [ 20 "//tests/legacy/examples/proto/embed:go_default_library", 21 "//tests/legacy/examples/proto/lib:lib_go_proto", 22 ], 23) 24 25go_test( 26 name = "proto_pure_test", 27 size = "small", 28 srcs = ["proto_test.go"], 29 pure = "on", 30 deps = [ 31 "//tests/legacy/examples/proto/embed:go_default_library", 32 "//tests/legacy/examples/proto/lib:lib_go_proto", 33 ], 34) 35