blob: 250a1b19fa333a1ed4481670cf664c100522a029 [file] [log] [blame]
Serge Bazanski77cb6c52020-12-19 00:09:22 +01001load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
Leopolde2a302a2023-01-15 15:39:18 +01002load("@bazel_skylib//rules:native_binary.bzl", "native_test")
Serge Bazanski77cb6c52020-12-19 00:09:22 +01003
4go_library(
Serge Bazanski6a328e62024-02-12 17:37:50 +01005 name = "launch-cluster_lib",
Serge Bazanski77cb6c52020-12-19 00:09:22 +01006 srcs = ["main.go"],
Jan Schär5abcc7a2024-08-26 13:59:11 +02007 data = [
8 "//metropolis/cli/metroctl",
9 ],
Serge Bazanski6a328e62024-02-12 17:37:50 +010010 importpath = "source.monogon.dev/metropolis/test/launch/cli/launch-cluster",
Serge Bazanski77cb6c52020-12-19 00:09:22 +010011 visibility = ["//visibility:private"],
Jan Schär5abcc7a2024-08-26 13:59:11 +020012 x_defs = {
13 "xMetroctlPath": "$(rlocationpath //metropolis/cli/metroctl )",
14 },
Serge Bazanski075465c2021-11-16 15:38:49 +010015 deps = [
Jan Schära9b060b2024-08-07 10:42:29 +020016 "//metropolis/cli/flagdefs",
Serge Bazanski1f8cad72023-03-20 16:58:10 +010017 "//metropolis/cli/metroctl/core",
Jan Schära9b060b2024-08-07 10:42:29 +020018 "//metropolis/node",
19 "//metropolis/proto/common",
Tim Windelschmidt9f21f532024-05-07 15:14:20 +020020 "//metropolis/test/launch",
Jan Schär5abcc7a2024-08-26 13:59:11 +020021 "@io_bazel_rules_go//go/runfiles:go_default_library",
Serge Bazanski075465c2021-11-16 15:38:49 +010022 ],
Serge Bazanski77cb6c52020-12-19 00:09:22 +010023)
24
25go_binary(
Serge Bazanskid02c6c72024-05-22 18:19:00 +020026 name = "launch-cluster",
Serge Bazanski6a328e62024-02-12 17:37:50 +010027 embed = [":launch-cluster_lib"],
Leopolde2a302a2023-01-15 15:39:18 +010028 visibility = ["//visibility:public"],
29)