Skip to content

direct yaml importing breaks importstr #135

Closed
@sh0rez

Description

@sh0rez

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/jsonnetEverything regarding the jsonnet languagekeepalivekind/bugSomething isn't workinglifecycle/blockedBlocked by outstanding changes (to another project)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions