Closed
Description
In #106 we introduced direct importing of yaml documents (as they are similar enough to json) by wrapping the jsonnet.FileImporter
and extending it by detecting all .yaml
documents. In case it is indeed yaml, we return the contents as json, instead of the literal contents.
This however is problematic in combination with importstr
, which should result in literal imports. But as the same importer is used, we also get the JSON contents here. Even worse, the jsonnet.Importer
interface does not allow us to detect which import mode we operate on.
Any ideas how that could be solved @sbarzowski?