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 = "certs_data", | |
srcs = glob(["*.crt"]), | |
flatten = True, | |
package = "certs", | |
) | |
go_library( | |
name = "certs", | |
srcs = [ | |
":certs_data", # keep | |
], | |
importpath = "code.hackerspace.pl/hscloud/cluster/certs", # keep | |
visibility = ["//visibility:public"], | |
) |