blob: 31efba917db97f463e9d3dd82ace6e5af3bb9f25 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//extras:embed_data.bzl", "go_embed_data")
go_embed_data(
name = "migrations_data",
srcs = glob(["*.sql"]),
flatten = True,
package = "migrations",
)
go_library(
name = "migrations",
srcs = [
"migrations.go",
":migrations_data", # keep
],
importpath = "code.hackerspace.pl/hscloud/bgpwtf/cccampix/pgpencryptor/model/migrations",
visibility = ["//bgpwtf/cccampix/pgpencryptor/model:__subpackages__"],
deps = [
"//go/mirko",
"@com_github_golang_migrate_migrate_v4//:migrate",
],
)