Closed gregmagolan closed 3 months ago
1 test target passed
//docs:update_29_test [k8-fastbuild] 69ms
Total test execution time was 69ms. 220 tests (99.5%) were fully cached saving 30s.
All tests were cache hits
1 test (100.0%) was fully cached saving 59ms.
All tests were cache hits
6 tests (100.0%) were fully cached saving 750ms.
All tests were cache hits
4 tests (100.0%) were fully cached saving 742ms.
All tests were cache hits
1 test (100.0%) was fully cached saving 59ms.
All tests were cache hits
6 tests (100.0%) were fully cached saving 2s.
Fixes https://github.com/aspect-build/bazel-lib/issues/891 (requested by Bazel Open Source Support customer).
Changes are visible to end-users: yes
New function
split_args
is added to the public API ofstrings.bzl
.This fix touches a number of different rules:
jq
rule expansions now include make vars and rule fixed to single quote args that contain spacesexpand_template
optimized to not to bother with pointless.split(" ")
followed by" ".join()
bats_test
optimized to not to bother with pointless.split(" ")
followed by" ".join()
params_file
rule fixed to correctly split args on quotesrun_binary
rule fixed to correctly split args on quotesTest plan
Unit tests added for the new
split_args
function that handles parsing args and splitting them taking into account single quotes, double quotes and escapes.