blob: 959ca35026463f830e5df1c2338955f109259aa2 [file] [log] [blame]
load("@io_bazel_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",
],
)