github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/walk/BUILD.bazel (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3 go_library( 4 name = "walk", 5 srcs = [ 6 "config.go", 7 "walk.go", 8 ], 9 importpath = "github.com/bazelbuild/bazel-gazelle/walk", 10 visibility = ["//visibility:public"], 11 deps = [ 12 "//config", 13 "//flag", 14 "//rule", 15 "@com_github_bmatcuk_doublestar_v4//:doublestar", 16 ], 17 ) 18 19 go_test( 20 name = "walk_test", 21 srcs = [ 22 "config_test.go", 23 "walk_test.go", 24 ], 25 embed = [":walk"], 26 deps = [ 27 "//config", 28 "//rule", 29 "//testtools", 30 "@com_github_bmatcuk_doublestar_v4//:doublestar", 31 "@com_github_google_go_cmp//cmp", 32 ], 33 ) 34 35 filegroup( 36 name = "all_files", 37 testonly = True, 38 srcs = [ 39 "BUILD.bazel", 40 "config.go", 41 "config_test.go", 42 "walk.go", 43 "walk_test.go", 44 ], 45 visibility = ["//visibility:public"], 46 ) 47 48 alias( 49 name = "go_default_library", 50 actual = ":walk", 51 visibility = ["//visibility:public"], 52 )