Skip to content

Commit cdbd003

Browse files
author
Patrick Scott
committed
Use setdefault in case no other annotations exist
If the only annotation uses is annotation_select, it will be silently dropped because no repository annotation exists yet.
1 parent cf8603c commit cdbd003

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
@@ -1051,7 +1051,7 @@ def _crate_impl(module_ctx):
10511051
if repositories:
10521052
for repo in repositories:
10531053
_update_annotations(
1054-
repo_specific_annotations.get(repo, {}),
1054+
repo_specific_annotations.setdefault(repo, {}),
10551055
crate,
10561056
version,
10571057
triples,

0 commit comments

Comments
 (0)