constellation/bazel/devbuild/BUILD.bazel
2023-08-21 11:08:10 +02:00

31 lines
1.1 KiB
Python

load("//bazel/sh:def.bzl", "sh_template")
load(":def.bzl", "cli_edition")
sh_template(
name = "devbuild",
data = [
":devbuild_cli_edition",
"//bazel/release:container_sums",
"//bootstrapper/cmd/bootstrapper:bootstrapper_linux_amd64",
"//cli:cli_edition_host",
"//debugd/cmd/cdbg:cdbg_host",
"//upgrade-agent/cmd:upgrade_agent_linux_amd64",
"@yq_toolchains//:resolved_toolchain",
],
substitutions = {
"@@BOOTSTRAPPER@@": "$(rootpath //bootstrapper/cmd/bootstrapper:bootstrapper_linux_amd64)",
"@@CDBG@@": "$(rootpath //debugd/cmd/cdbg:cdbg_host)",
"@@CLI@@": "$(rootpath //cli:cli_edition_host)",
"@@CONTAINER_SUMS@@": "$(rootpath //bazel/release:container_sums)",
"@@EDITION@@": "$(rootpath :devbuild_cli_edition)",
"@@UPGRADE_AGENT@@": "$(rootpath //upgrade-agent/cmd:upgrade_agent_linux_amd64)",
"@@YQ@@": "$(rootpath @yq_toolchains//:resolved_toolchain)",
},
template = "prepare_developer_workspace.sh.in",
visibility = ["//visibility:public"],
)
cli_edition(
name = "devbuild_cli_edition",
)