jsonnet-libs / k8s

Code generator for Jsonnet Kubernetes libraries.
Apache License 2.0
171 stars 98 forks source link

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

Closed JaquelineP closed 2 weeks ago

JaquelineP commented 1 year ago

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!

Duologic commented 1 year ago

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 commented 2 weeks ago

Didn't get a response, closing.