databricks / sjsonnet

Apache License 2.0
267 stars 55 forks source link

unknown variables in argument array not an error if not used #140

Open nicklan opened 3 years ago

nicklan commented 3 years ago

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"