Open mathewpeterson opened 1 year ago
--multi
produces one file per field, following the default manifestification format (json serialization)
In theory, this may be fixed by specifying the inner document format (I.e jsonnet -m . -S example3.jsonnet
), however, standard jsonnet implementation doesn't allows to combine --multi and any other manifestification flag
I was able to do this: jsonnet -m . -S -e "{a: 'a', b: 'b'}"
with no issue. Which jsonnet implementation are you referring to?
When using the
example3.jsonnet
found on the jsonnet.org home page:then running the following command:
jsonnet -m . example3.jsonnet
, the files generated are not valid as each file is encapsulated inside of json string:init.sh:
cassandra.conf:
uwsgi.ini:
Tested both jsonnet and go-jsonnet, both v0.19.1, and jsonnet 0.18.0 with the same results.
I am not sure if this is the expected output since you would need to use another tool, like
jq
, to parse and rewrite the file.