lb5tr | 716ecf6 | 2019-08-05 17:33:29 -0700 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| 2 | load("@io_bazel_rules_go//extras:embed_data.bzl", "go_embed_data") |
| 3 | |
| 4 | go_embed_data( |
| 5 | name = "migrations_data", |
| 6 | srcs = glob(["*.sql"]), |
| 7 | package = "migrations", |
| 8 | flatten = True, |
| 9 | ) |
| 10 | |
| 11 | go_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 | ) |