google / jsonnet

Jsonnet - The data templating language
http://jsonnet.org
Apache License 2.0
6.98k stars 440 forks source link

std.{any,all} fails with gibberish log when arr contains non boolean elements #1101

Closed ashi009 closed 11 months ago

ashi009 commented 1 year ago
std.all(["test"])

function expected 2 positional argument(s), but got 3

It turned out that std.formats are called with incorrect arguments.

https://github.com/google/jsonnet/blob/4d7a21c9966b64ec35ba7e1bd3dbf6148ecf00e0/stdlib/std.jsonnet#L1648-L1677