Sergiusz Bazanski | 1fad2e5 | 2019-08-01 20:16:27 +0200 | [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/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 | ) |