blob: e6c3bb00f2b47f2af31f4a2b341578dc9b3c10f9 [file] [log] [blame]
lb5tr716ecf62019-08-05 17:33:29 -07001load("@io_bazel_rules_go//go:def.bzl", "go_library")
2load("@io_bazel_rules_go//extras:embed_data.bzl", "go_embed_data")
3
4go_embed_data(
5 name = "migrations_data",
6 srcs = glob(["*.sql"]),
7 package = "migrations",
8 flatten = True,
9)
10
11go_library(
12 name = "go_default_library",
13 srcs = [
14 "migrations.go",
15 ":migrations_data", # keep
16 ],
17 importpath = "code.hackerspace.pl/hscloud/bgpwtf/cccampix/pgpencryptor/model/migrations",
18 visibility = ["//bgpwtf/cccampix/pgpencryptor/model:__subpackages__"],
19 deps = [
20 "//go/mirko:go_default_library",
21 "@com_github_golang_migrate_migrate_v4//:go_default_library",
22 ],
23)