blob: c1f18193277d20d804232a0cef10afa13eb66d0a [file] [log] [blame] [edit]
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "walk",
srcs = [
"cache.go",
"config.go",
"dirinfo.go",
"walk.go",
],
importpath = "github.com/bazelbuild/bazel-gazelle/walk",
visibility = ["//visibility:public"],
deps = [
"//config",
"//flag",
"//pathtools",
"//rule",
"@com_github_bazelbuild_buildtools//build",
"@com_github_bmatcuk_doublestar_v4//:doublestar",
],
)
go_test(
name = "walk_test",
srcs = [
"config_test.go",
"walk_test.go",
],
embed = [":walk"],
deps = [
"//config",
"//rule",
"//testtools",
"@com_github_bmatcuk_doublestar_v4//:doublestar",
"@com_github_google_go_cmp//cmp",
],
)
filegroup(
name = "all_files",
testonly = True,
srcs = [
"BUILD.bazel",
"cache.go",
"config.go",
"config_test.go",
"dirinfo.go",
"walk.go",
"walk_test.go",
],
visibility = ["//visibility:public"],
)
alias(
name = "go_default_library",
actual = ":walk",
visibility = ["//visibility:public"],
)