sjsonnet icon indicating copy to clipboard operation
sjsonnet copied to clipboard

unknown variables in argument array not an error if not used

Open nicklan opened this issue 4 years ago • 0 comments

This is more a divergence from go-jsonnet, as one could argue that the lazy nature of jsonnet should mean that this works.

test:

std.format("%s", ["a", b])

go-jsonnet:

$ jsonnet unk.jsonnet
unk.jsonnet:1:24-25 Unknown variable: b
std.format("%s", ["a", b])

sjsonnet:

$ sjsonnet unk.jsonnet
"a"

nicklan avatar Nov 17 '21 22:11 nicklan