blob: 70ce3e4bc98a8cee73a7cbe9bfc9df53df92ed19 [file] [log] [blame]
load("@rules_go//go:def.bzl", "go_binary", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "basic_lib",
srcs = ["basic.go"],
importpath = "go.skia.org/infra/task_driver/examples/basic",
visibility = ["//visibility:private"],
deps = [
"//go/exec",
"//go/sklog",
"//task_driver/go/lib/os_steps",
"//task_driver/go/td",
"@com_github_google_uuid//:uuid",
],
)
go_binary(
name = "basic",
embed = [":basic_lib"],
visibility = ["//visibility:public"],
)
go_test(
name = "basic_test",
srcs = ["basic_test.go"],
embed = [":basic_lib"],
deps = [
"//go/exec",
"//task_driver/go/td",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)