blob: b2f70a6b26ff2cfbd860d96445bd90aa1e119e86 [file] [log] [blame]
Sergiusz Bazanski4c0e9b52020-04-08 22:42:33 +02001load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
Serge Bazanski97b5cd72023-07-28 17:14:50 +00004 name = "service",
Sergiusz Bazanskif157b4d2020-04-10 17:39:43 +02005 srcs = [
6 "gerrit.go",
7 "service.go",
8 ],
Sergiusz Bazanski4c0e9b52020-04-08 22:42:33 +02009 importpath = "code.hackerspace.pl/hscloud/devtools/depotview/service",
10 visibility = ["//visibility:public"],
11 deps = [
Serge Bazanski97b5cd72023-07-28 17:14:50 +000012 "//devtools/depotview/proto",
13 "@com_github_go_git_go_git_v5//:go-git",
14 "@com_github_go_git_go_git_v5//config",
15 "@com_github_go_git_go_git_v5//plumbing",
16 "@com_github_go_git_go_git_v5//plumbing/filemode",
17 "@com_github_go_git_go_git_v5//plumbing/object",
18 "@com_github_go_git_go_git_v5//storage",
19 "@com_github_go_git_go_git_v5//storage/memory",
20 "@com_github_golang_glog//:glog",
21 "@org_golang_google_grpc//codes",
22 "@org_golang_google_grpc//status",
Sergiusz Bazanski4c0e9b52020-04-08 22:42:33 +020023 ],
24)
25
26go_test(
Serge Bazanski97b5cd72023-07-28 17:14:50 +000027 name = "service_test",
Sergiusz Bazanski4c0e9b52020-04-08 22:42:33 +020028 srcs = ["service_test.go"],
Serge Bazanski97b5cd72023-07-28 17:14:50 +000029 embed = [":service"],
30 deps = ["//devtools/depotview/proto"],
Sergiusz Bazanski4c0e9b52020-04-08 22:42:33 +020031)