| load("//bazel/go:go_test.bzl", "go_test") |
| load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| |
| 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", |
| "//go/testutils/unittest", |
| "@com_github_go_python_gpython//ast", |
| "@com_github_stretchr_testify//require", |
| ], |
| ) |