aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCornelius Riemenschneider <criemen@github.com>2024-02-24 17:22:09 +0100
committerGitHub <noreply@github.com>2024-02-24 16:22:09 +0000
commit777f3e5c5d280b14d37bb7574a88f1cbfb3f8d46 (patch)
tree5dc720cd209be409b1e906c65dce35b2d90c7f89
parente7f55168ace5920eb41488133f3c03ada7fcd998 (diff)
downloadbazelbuild-rules_rust-777f3e5c5d280b14d37bb7574a88f1cbfb3f8d46.tar.gz
Fix all-crate-deps with bzlmod and conditionals. (#2516)
I believe this was an oversight from #2491, that this is lacking.
-rw-r--r--crate_universe/src/rendering/templates/partials/module/deps_map.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/crate_universe/src/rendering/templates/partials/module/deps_map.j2 b/crate_universe/src/rendering/templates/partials/module/deps_map.j2
index fe8175db..d1f1b981 100644
--- a/crate_universe/src/rendering/templates/partials/module/deps_map.j2
+++ b/crate_universe/src/rendering/templates/partials/module/deps_map.j2
@@ -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 %}