mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 13:51:46 +00:00
27 lines
734 B
Python
27 lines
734 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
load("//dev:go_defs.bzl", "go_test")
|
|
|
|
go_library(
|
|
name = "redislock",
|
|
srcs = ["redislock.go"],
|
|
importpath = "github.com/sourcegraph/sourcegraph/internal/redislock",
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//internal/redispool",
|
|
"@com_github_gomodule_redigo//redis",
|
|
"@com_github_google_uuid//:uuid",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "redislock_test",
|
|
srcs = ["redislock_test.go"],
|
|
embed = [":redislock"],
|
|
deps = [
|
|
"//internal/redispool",
|
|
"@com_github_derision_test_go_mockgen_v2//testutil/require",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
],
|
|
)
|