blob: 339ea4c2fe06d8f8b9029a66d57ed54df465373f [file] [log] [blame]
Serge Bazanski77cb6c52020-12-19 00:09:22 +01001load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
2
3go_library(
Serge Bazanski6a328e62024-02-12 17:37:50 +01004 name = "launch-cluster_lib",
Serge Bazanski77cb6c52020-12-19 00:09:22 +01005 srcs = ["main.go"],
Jan Schär5abcc7a2024-08-26 13:59:11 +02006 data = [
Jan Schär59094472025-02-10 10:17:33 +01007 "//metropolis/cli/metroctl:metroctl_lite",
Jan Schär5abcc7a2024-08-26 13:59:11 +02008 ],
Serge Bazanski6a328e62024-02-12 17:37:50 +01009 importpath = "source.monogon.dev/metropolis/test/launch/cli/launch-cluster",
Serge Bazanski77cb6c52020-12-19 00:09:22 +010010 visibility = ["//visibility:private"],
Jan Schär5abcc7a2024-08-26 13:59:11 +020011 x_defs = {
Jan Schär59094472025-02-10 10:17:33 +010012 "xMetroctlPath": "$(rlocationpath //metropolis/cli/metroctl:metroctl_lite )",
Jan Schär5abcc7a2024-08-26 13:59:11 +020013 },
Serge Bazanski075465c2021-11-16 15:38:49 +010014 deps = [
Jan Schära9b060b2024-08-07 10:42:29 +020015 "//metropolis/cli/flagdefs",
Serge Bazanski1f8cad72023-03-20 16:58:10 +010016 "//metropolis/cli/metroctl/core",
Jan Schära9b060b2024-08-07 10:42:29 +020017 "//metropolis/node",
18 "//metropolis/proto/common",
Tim Windelschmidt9f21f532024-05-07 15:14:20 +020019 "//metropolis/test/launch",
Tim Windelschmidt156248b2025-01-10 00:27:45 +010020 "@io_bazel_rules_go//go/runfiles",
Serge Bazanski075465c2021-11-16 15:38:49 +010021 ],
Serge Bazanski77cb6c52020-12-19 00:09:22 +010022)
23
24go_binary(
Serge Bazanskid02c6c72024-05-22 18:19:00 +020025 name = "launch-cluster",
Serge Bazanski6a328e62024-02-12 17:37:50 +010026 embed = [":launch-cluster_lib"],
Leopolde2a302a2023-01-15 15:39:18 +010027 visibility = ["//visibility:public"],
28)