blob: 585ea483afb1673c9aa657229a6b37702762bbd6 [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"]),
package = "migrations",
flatten = True,
)
go_library(
name = "go_default_library",
srcs = [
"migrations.go",
":migrations_data", # keep
],
importpath = "code.hackerspace.pl/hscloud/go/mirko/tests/sql/migrations",
visibility = ["//go/mirko/tests/sql:__subpackages__"],
deps = [
"//go/mirko:go_default_library",
"@com_github_golang_migrate_migrate_v4//:go_default_library",
],
)