-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
49 lines (43 loc) · 1.02 KB
/
BUILD
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
47
48
49
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@io_bazel_rules_go//go:def.bzl", "nogo")
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@io_bazel_rules_docker//go:image.bzl", "go_image")
# gazelle:prefix github.com/numine777/OffByOne
gazelle(name = "gazelle")
gazelle(
name = "gazelle-update-repos",
args = [
"-from_file=go.mod",
"-to_macro=deps.bzl%go_dependencies",
"-prune",
],
command = "update-repos",
)
nogo(
name = "my_vet",
vet = True,
visibility = ["//visibility:public"],
)
go_library(
name = "OffByOne_lib",
srcs = [
"api.go",
"main.go",
],
importpath = "github.com/numine777/OffByOne",
visibility = ["//visibility:private"],
deps = [
"//core",
"@io_gorm_driver_sqlite//:sqlite",
"@io_gorm_gorm//:gorm",
],
)
go_binary(
name = "OffByOne",
embed = [":OffByOne_lib"],
visibility = ["//visibility:public"],
)
go_image(
name = "app_image",
binary = ":OffByOne",
)