Sergiusz Bazanski | b13b7ff | 2019-08-29 20:12:24 +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 = "certs_data", |
| 6 | srcs = glob(["*.crt"]), |
Sergiusz Bazanski | b13b7ff | 2019-08-29 20:12:24 +0200 | [diff] [blame] | 7 | flatten = True, |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame^] | 8 | package = "certs", |
Sergiusz Bazanski | b13b7ff | 2019-08-29 20:12:24 +0200 | [diff] [blame] | 9 | ) |
| 10 | |
| 11 | go_library( |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame^] | 12 | name = "certs", |
Sergiusz Bazanski | b13b7ff | 2019-08-29 20:12:24 +0200 | [diff] [blame] | 13 | srcs = [ |
| 14 | ":certs_data", # keep |
| 15 | ], |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame^] | 16 | importpath = "code.hackerspace.pl/hscloud/cluster/certs", # keep |
Sergiusz Bazanski | b13b7ff | 2019-08-29 20:12:24 +0200 | [diff] [blame] | 17 | visibility = ["//visibility:public"], |
| 18 | ) |