k8s icon indicating copy to clipboard operation
k8s copied to clipboard

k8s-libsonnet: Text block's first line must start with whitespace

Open JaquelineP opened this issue 2 years ago • 1 comments

Hi,

I'll try to run the k8s-libsonnet sample from the documentation: https://jsonnet-libs.github.io/k8s-libsonnet/ When executing `tk show environments/qa' to render the yaml which will be applied, the following error occurs:

$ tk show environments/qa/
Error: evaluating jsonnet: RUNTIME ERROR: C:\DEV\projects\eip-1427\vendor\github.com\jsonnet-libs\k8s-libsonnet\1.26\_custom\core.libsonnet:42:29 Text block's first line must start with whitespace
        C:\DEV\projects\eip-1427\vendor\github.com\jsonnet-libs\k8s-libsonnet\1.26\main.libsonnet:1:145-176     $
        C:\DEV\projects\eip-1427\environments\qa\main.jsonnet:2:14-80   object <anonymous>
        C:\DEV\projects\eip-1427\environments\qa\main.jsonnet:3:8-9
        Field "foo"
        During manifestation

Any help is appreciated!

JaquelineP avatar Apr 24 '23 12:04 JaquelineP

Looks like the rendered docsonnet docstrings are not 100% correct, but I don't see how you reach this part of the code, can you share a minimally reproducible example so we can test and eventually fix this issue?

Duologic avatar Apr 28 '23 07:04 Duologic

Didn't get a response, closing.

Duologic avatar Oct 11 '24 12:10 Duologic