Skip to content

Commit

Permalink
Re-use tags for rust_binary and build script (#974)
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion authored Oct 14, 2021
1 parent 6bf03f2 commit 9d3303d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cargo/cargo_build_script.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,18 @@ def cargo_build_script(
if "CARGO_CRATE_NAME" not in rustc_env:
rustc_env["CARGO_CRATE_NAME"] = name_to_crate_name(_name_to_pkg_name(name))

binary_tags = [tag for tag in tags or []]
if "manual" not in binary_tags:
binary_tags.append("manual")

rust_binary(
name = name + "_script_",
crate_features = crate_features,
version = version,
deps = deps,
data = data,
rustc_env = rustc_env,
tags = ["manual"],
tags = binary_tags,
**kwargs
)
_build_script_run(
Expand Down

0 comments on commit 9d3303d

Please sign in to comment.