forked from reedom/casbin-firestore-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
46 lines (42 loc) · 1.33 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
load("@bazel_gazelle//:def.bzl", "gazelle")
# gazelle:prefix github.com/innovation-upstream/casbin-firestore-adapter
# gazelle:go_naming_convention import_alias
# gazelle:go_naming_convention_external go_default_library
gazelle(
name = "gazelle",
)
go_library(
name = "casbin-firestore-adapter",
srcs = [
"Config.go",
"adapter.go",
"model.go",
],
importpath = "github.com/innovation-upstream/casbin-firestore-adapter",
visibility = ["//visibility:public"],
deps = [
"@com_github_casbin_casbin_v2//model:go_default_library",
"@com_github_casbin_casbin_v2//persist:go_default_library",
"@com_google_cloud_go_firestore//:go_default_library",
"@org_golang_google_api//iterator:go_default_library",
],
)
alias(
name = "go_default_library",
actual = ":casbin-firestore-adapter",
visibility = ["//visibility:public"],
)
go_test(
name = "casbin-firestore-adapter_test",
srcs = [
"adapter_test.go",
"model_test.go",
],
embed = [":casbin-firestore-adapter"],
deps = [
"@com_github_casbin_casbin_v2//:go_default_library",
"@com_github_casbin_casbin_v2//model:go_default_library",
"@com_google_cloud_go_firestore//:go_default_library",
],
)