blob: c4806ebe807ba817ea93e94f642188d8f3247171 [file] [log] [blame]
Serge Bazanskia42844a2024-05-16 18:06:19 +02001load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "qcow2",
5 srcs = ["qcow2.go"],
Tim Windelschmidt82e6af72024-07-23 00:05:42 +00006 data = [
7 "@qemu//:qemu-img",
8 ],
Serge Bazanskia42844a2024-05-16 18:06:19 +02009 importpath = "source.monogon.dev/go/qcow2",
10 visibility = ["//visibility:public"],
Tim Windelschmidt82e6af72024-07-23 00:05:42 +000011 x_defs = {
12 "xQemuImgPath": "$(rlocationpath @qemu//:qemu-img )",
13 },
Serge Bazanskia42844a2024-05-16 18:06:19 +020014)
15
16go_test(
17 name = "qcow2_test",
18 srcs = ["qcow2_test.go"],
Serge Bazanskia42844a2024-05-16 18:06:19 +020019 embed = [":qcow2"],
20 deps = ["@io_bazel_rules_go//go/runfiles:go_default_library"],
21)