Skip to content

Commit 3833a79

Browse files
qticascramm
authored andcommitted
Fix all-crate-deps with bzlmod and conditionals. (bazelbuild#2516)
I believe this was an oversight from bazelbuild#2491, that this is lacking.
1 parent 031d03d commit 3833a79

File tree

1 file changed

+1
-1
lines changed
  • crate_universe/src/rendering/templates/partials/module

1 file changed

+1
-1
lines changed

crate_universe/src/rendering/templates/partials/module/deps_map.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
{%- for dep in deps %}
4141
{%- if dep.id in context.workspace_members %}{% continue %}}{% endif %}{# Workspace member repositories are not defined, skip adding their labels here #}
4242
{%- set crate = context.crates | get(key=dep.id) %}
43-
"{{ dep | get(key="alias", default=crate.name) }}": "{{ crate_label(name = crate.name, version = crate.version, target = dep.target) }}",
43+
"{{ dep | get(key="alias", default=crate.name) }}": Label("{{ crate_label(name = crate.name, version = crate.version, target = dep.target) }}"),
4444
{%- endfor %}
4545
},
4646
{%- endfor %}

0 commit comments

Comments
 (0)