It sounds like the only thing that would work for you (short of computed imports) is the ability to import a directory? And I think the same applies for Alex.
There are a number of design questions with that though:
- should it support *.jsonnet and *.libsonnet or all files?
- should files beginning with a . be included?
- should the same feature exist for importstr
- should there be a single construct to import both strings and jsonnet files? Should it guess which is which by extension?
The reason we don't want to allow arbitrary computed imports is that it breaks all static analysis, including really useful things like "where is X defined".