From 6677f557d963b88c63f42f66360603e85ea52bd9 Mon Sep 17 00:00:00 2001 From: Lukas Spirig Date: Thu, 18 Nov 2021 18:26:42 +0100 Subject: [PATCH] build: prevent * expansion for static css content in ng_web_test_suite Currently when using a `*` inside css code (e.g. `calc(... * ...)` in the typography) it will be expanded to files in the current directory (e.g. `calc ... bazel-out external ...`), which will break the tests. This PR fixes this by wrapping the variable usage with quotes. --- tools/defaults.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/defaults.bzl b/tools/defaults.bzl index 64a384d83815..6b50d4b658bd 100644 --- a/tools/defaults.bzl +++ b/tools/defaults.bzl @@ -390,7 +390,7 @@ def ng_web_test_suite(deps = [], static_css = [], exclude_init_script = False, * cssElement.type = "text/css"; \ cssElement.innerHTML = "'"$$css_content"'"; \ document.head.appendChild(cssElement);' - echo $$js_template > $@ + echo "$$js_template" > $@ """ % css_label, )