Open qnp opened 1 year ago
Hello there,
I have a lot of issues that involve a "magic" type that cannot match other type. For instance:
magic
regexp.match: expected starlark.String, but was *magic.MagicType
magic index: got magic, want int
.spec.template.spec.containers[0].resources expected object got: magic
I have ytt lint v0.3.1.
v0.3.1
Below is an example file that generates the error magic index: got magic, want int:
#@ load("@ytt:data", "data") #@ load("@ytt:struct", "struct") --- #@ for key in struct.decode(data.values.env): - name: #@ key value: #@ "{}".format(data.values.env[key]) #@ end
Is there something that I am doing wrong or is it a bug of the linter ?
Best regards
Seeing this quite a bit also:
Hello there,
I have a lot of issues that involve a "
magic
" type that cannot match other type. For instance:I have ytt lint
v0.3.1
.Below is an example file that generates the error
magic index: got magic, want int
:Is there something that I am doing wrong or is it a bug of the linter ?
Best regards