sourcegraph/internal/redislock/BUILD.bazel
Noah S-C cb7034680d
bump to Go 1.22.1 (#60902)
🚀 💎 🙌 🚙 

## Test plan

CI
2024-03-06 17:38:43 -07:00

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",
],
)