Skip to content

Commit 9d3303d

Browse files
authored
Re-use tags for rust_binary and build script (#974)
1 parent 6bf03f2 commit 9d3303d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cargo/cargo_build_script.bzl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,14 +336,18 @@ def cargo_build_script(
336336
if "CARGO_CRATE_NAME" not in rustc_env:
337337
rustc_env["CARGO_CRATE_NAME"] = name_to_crate_name(_name_to_pkg_name(name))
338338

339+
binary_tags = [tag for tag in tags or []]
340+
if "manual" not in binary_tags:
341+
binary_tags.append("manual")
342+
339343
rust_binary(
340344
name = name + "_script_",
341345
crate_features = crate_features,
342346
version = version,
343347
deps = deps,
344348
data = data,
345349
rustc_env = rustc_env,
346-
tags = ["manual"],
350+
tags = binary_tags,
347351
**kwargs
348352
)
349353
_build_script_run(

0 commit comments

Comments
 (0)