blob: 9b3e738119ba4c68f84a04d407f3bf7702fb5fed [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "cacher",
srcs = ["cacher.go"],
importpath = "go.skia.org/infra/task_scheduler/go/cacher",
visibility = ["//visibility:public"],
deps = [
"//go/cas",
"//go/git",
"//go/isolate",
"//go/skerr",
"//task_scheduler/go/isolate_cache",
"//task_scheduler/go/specs",
"//task_scheduler/go/syncer",
"//task_scheduler/go/task_cfg_cache",
"//task_scheduler/go/types",
"@org_chromium_go_luci//common/isolated",
],
)
go_test(
name = "cacher_test",
srcs = ["cacher_test.go"],
embed = [":cacher"],
deps = [
"//go/cas/mocks",
"//go/cas/rbe",
"//go/deepequal/assertdeep",
"//go/depot_tools/testutils",
"//go/git/repograph",
"//go/git/testutils",
"//go/isolate",
"//go/testutils",
"//go/testutils/unittest",
"//task_scheduler/go/isolate_cache",
"//task_scheduler/go/specs",
"//task_scheduler/go/syncer",
"//task_scheduler/go/task_cfg_cache",
"//task_scheduler/go/task_cfg_cache/testutils",
"//task_scheduler/go/types",
"@com_github_stretchr_testify//mock",
"@com_github_stretchr_testify//require",
"@org_chromium_go_luci//common/isolated",
],
)