blob: 1534a80df96cbe2c385d77ed6e5bbb29a63e7cb5 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "exec",
srcs = [
"context.go",
"exec.go",
"exec_linux.go",
"exec_mac.go",
"exec_testutil.go",
"exec_windows.go",
"retry.go",
],
importpath = "go.skia.org/infra/go/exec",
visibility = ["//visibility:public"],
deps = [
"//go/sklog",
"//go/util",
"@com_github_cenkalti_backoff_v4//:backoff",
],
)
go_test(
name = "exec_test",
srcs = [
"exec_test.go",
"retry_test.go",
],
embed = [":exec"],
deps = [
"//bazel/external/rules_python",
"//go/sklog",
"//go/testutils/unittest",
"@com_github_cenkalti_backoff_v4//:backoff",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)