Skip to content

Commit 4baffef

Browse files
Use setdefault in case no other annotations exist (#3629)
If the only annotation used is annotation_select, it will be silently dropped because no repository annotation exists yet.
1 parent c661155 commit 4baffef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crate_universe/extensions.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ def _crate_impl(module_ctx):
10521052
if repositories:
10531053
for repo in repositories:
10541054
_update_annotations(
1055-
repo_specific_annotations.get(repo, {}),
1055+
repo_specific_annotations.setdefault(repo, {}),
10561056
crate,
10571057
version,
10581058
triples,

0 commit comments

Comments
 (0)