Closed nicklan closed 1 year ago
This looks like a precedence problem. import
should have lower precedence than +
but Sjsonnet treats it as higher. We see the same for .
(local buiApiServerReleasePipeline = import "./release-pipeline.jsonnet.TEMPLATE".buiApiServerReleasePipeline;
)
From https://jsonnet.org/ref/spec.html:
Everything is left associative. In the case of assert, error, function, if, import, importstr, and local, ambiguity is resolved by consuming as many tokens as possible on the right hand side.
But the grammar contains
import string
and this is what Sjsonnet implements. The intention is probably to parse as import expr
and then assert that the expr
is a string
.
Sample file:
go-jsonnet:
sjsonnet: