Bazel: add an installer shortcut to codeql_pack

This makes the first `codeql_pack` in a package add an `installer` target
aliasing the `<name>-installer` one. This makes it so that one can for
example do `bazel run //rust:installer` instead of the stuttering
`bazel run //rust:rust-installer`. If a bazel package defines multiple
`codeql_pack` targets, the first one only will get the `installer` alias.
This commit is contained in:
Paolo Tranquilli
2024-11-19 10:25:31 +01:00
parent 99494dd540
commit 6e33f979c7
3 changed files with 7 additions and 4 deletions

View File

@@ -56,10 +56,10 @@ codeql_pkg_files(
pack_prefix = "/".join(parts),
)
for parts in (
["rust"],
[
"experimental",
"rust",
],
["rust"],
)
]