You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: js/private/test/BUILD.bazel
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,14 @@ js_binary(
19
19
fixed_args= ["--my_arg"],
20
20
)
21
21
22
-
# Make sed replacements for consistency on different platform
22
+
# Make sed replacements for consistency on different platform / Bazel version.
23
+
# The trailing sed pipeline normalizes bzlmod canonical repo separators ~~/~
24
+
# (Bazel 7) to ++/+ (Bazel 8+) so the snapshot matches across versions.
23
25
genrule(
24
26
name="shell_launcher_sed",
25
27
srcs= [":shellcheck_launcher"],
26
28
outs= ["shellcheck_launcher_sed.sh"],
27
-
cmd="cat $(execpath :shellcheck_launcher) | sed \"s#$(BINDIR)#bazel-out/k8-fastbuild/bin#\" | sed \"s#JS_BINARY__TARGET_CPU=\\\"$(TARGET_CPU)\\\"#JS_BINARY__TARGET_CPU=\\\"k8\\\"#\" | sed \"s#%s#linux_amd64#\" | sed \"s#\\\"%s\\\"#\\\"k8\\\"#\" > $@"% (
29
+
cmd="cat $(execpath :shellcheck_launcher) | sed \"s#$(BINDIR)#bazel-out/k8-fastbuild/bin#\" | sed \"s#JS_BINARY__TARGET_CPU=\\\"$(TARGET_CPU)\\\"#JS_BINARY__TARGET_CPU=\\\"k8\\\"#\" | sed \"s#%s#linux_amd64#\" | sed \"s#\\\"%s\\\"#\\\"k8\\\"#\"| sed -E -e 's/~~/++/g' -e 's|([+][+][^/~]+)~([^/~]+)~([^/~]+)|\\1+\\2+\\3|g' -e 's|([+][+][^/~]+)~([^/~]+)|\\1+\\2|g' > $@"% (
0 commit comments