Will tanka be required in the future for loki's libsonnet

I’m wondering if it loki (or other grafana labs projects) will always provide jsonnet libraries that are usable without tanka. I’m hoping so, but I’d love to have this confirmed.

This is a good question. I suspect you are asking because of usage of std.native('parseYaml') which is Tanka only.

Jsonnet does not have YAML import support yet (std.parseYaml (and std.parseJson) · Issue #460 · google/jsonnet · GitHub), so Tanka has to provide an extension.

I would say it is totally reasonable to post an issue/PR against Loki code requesting it to avoid Tanka specific features.

1 Like