Skip to content

Commit

Permalink
Fix all-crate-deps with bzlmod and conditionals. (bazelbuild#2516)
Browse files Browse the repository at this point in the history
I believe this was an oversight from bazelbuild#2491, that this is lacking.
  • Loading branch information
criemen authored Feb 24, 2024
1 parent e7f5516 commit 777f3e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{%- for dep in deps %}
{%- if dep.id in context.workspace_members %}{% continue %}}{% endif %}{# Workspace member repositories are not defined, skip adding their labels here #}
{%- set crate = context.crates | get(key=dep.id) %}
"{{ dep | get(key="alias", default=crate.name) }}": "{{ crate_label(name = crate.name, version = crate.version, target = dep.target) }}",
"{{ dep | get(key="alias", default=crate.name) }}": Label("{{ crate_label(name = crate.name, version = crate.version, target = dep.target) }}"),
{%- endfor %}
},
{%- endfor %}
Expand Down

0 comments on commit 777f3e5

Please sign in to comment.