constellation/bazel/devbuild/BUILD.bazel

32 lines
1.1 KiB
Python
Raw Normal View History

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@@": "$(YQ_BIN)",
},
template = "prepare_developer_workspace.sh.in",
toolchains = ["@yq_toolchains//:resolved_toolchain"],
visibility = ["//visibility:public"],
)
cli_edition(
name = "devbuild_cli_edition",
)