blob: 5cdab536c2d1e27d3ea02cd6cf5d54d80cc63aa3 [file] [log] [blame] [edit]
load("@rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "gitauth",
srcs = ["gitauth.go"],
importpath = "go.skia.org/infra/go/gitauth",
visibility = ["//visibility:public"],
deps = [
"//go/exec",
"//go/git",
"//go/now",
"//go/skerr",
"//go/sklog",
"//go/util",
"@org_golang_x_oauth2//:oauth2",
],
)
go_test(
name = "gitauth_test",
srcs = ["gitauth_test.go"],
embed = [":gitauth"],
deps = [
"//go/exec",
"//go/exec/testutils",
"//go/git/git_common",
"//go/skerr",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@org_golang_x_oauth2//:oauth2",
],
)