blob: b20d35f363faad1f2f54fbbf5bb19a7d213207a8 [file] [log] [blame]
Sergiusz Bazanski1fad2e52019-08-01 20:16:27 +02001load("@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/verifier/model/migrations",
18 visibility = ["//bgpwtf/cccampix/verifier/model:__subpackages__"],
19 deps = [
20 "//go/mirko:go_default_library",
21 "@com_github_golang_migrate_migrate_v4//:go_default_library",
22 ],
23)