blob: 2961db08dc271b56113ca8d08078421aaf82b60f [file] [log] [blame]
load("//bazel/go:go_test.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "gitinfo",
srcs = ["gitinfo.go"],
importpath = "go.skia.org/infra/go/git/gitinfo",
visibility = ["//visibility:public"],
deps = [
"//go/exec",
"//go/git",
"//go/git/git_common",
"//go/skerr",
"//go/sklog",
"//go/vcsinfo",
],
)
go_test(
name = "gitinfo_test",
srcs = ["gitinfo_test.go"],
embed = [":gitinfo"],
deps = [
"//go/git",
"//go/testutils/unittest",
"//go/vcsinfo/testutils",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)