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