CertainLach/jrsonnet

JPATH not applied to `--tla-code-file`

Duologic opened this issue · 1 comments

A plain example:

[I] ➜ cat vendor/read.jsonnet
{}

[I] ➜ jsonnet -J vendor --tla-code-file "file=read.jsonnet" -e 'function(file) std.toString(file)'
"{ }"

[I] ➜ jrsonnet -J vendor --tla-code-file "file=read.jsonnet" -e 'function(file) std.toString(file)'
error: invalid value 'file=read.jsonnet' for '--tla-code-file <name=tla code path>': No such file or directory (os error 2)

For more information, try '--help'.

I've also found that when using the full path vendor/<path/to/file> and the tla-code-file has relative imports it may not work well either, but couldn't come up with a minimally reproducible test case.

Huh. I wonder why jpath is not resolved in input in official jsonnet, yet tla-code-file uses it.