2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-11-25 11:32:33 +00:00
bazel-lib/lib/private/parse_status_file.yq
Malte Poll 794df714d7 Use actual newline (instead of "\n") to split strings in yq rule
Fixes d79f4d4
Fixes #463

This is required since versions of yq older than 4.30.3 do not parse "\n" correctly.
See https://github.com/mikefarah/yq/issues/1430 and e02bb7194897edb916a6787fb8f8e5a7f432dd94
2023-06-22 17:09:44 -07:00

5 lines
128 B
Plaintext

load_str(filename) | split("
") | .[] | select(length!=0)
| [capture("(?P<key>[^\s]+)\s+(?P<value>.*)")]
| from_entries