blob: 39d7f094f7390deb42b4a2b30e07a005c7ecfecb [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "deps_parser",
srcs = ["deps_parser.go"],
importpath = "go.skia.org/infra/go/depot_tools/deps_parser",
visibility = ["//visibility:public"],
deps = [
"//go/cipd",
"//go/git",
"//go/skerr",
"@com_github_go_python_gpython//ast",
"@com_github_go_python_gpython//builtin",
"@com_github_go_python_gpython//parser",
"@com_github_go_python_gpython//py",
],
)
go_test(
name = "deps_parser_test",
srcs = [
"deps_parser_manual_test.go",
"deps_parser_test.go",
],
embed = [":deps_parser"],
deps = [
"//go/deepequal/assertdeep",
"//go/gitiles",
"@com_github_go_python_gpython//ast",
"@com_github_stretchr_testify//require",
],
)