Error while parsing [_, cont] := walk(structure.spec.containers[_])
olegroom opened this issue · comments
Oleg commented
Come up with a problem, where standard opa bundle .
works correctly, though fregot bundle -o bun.bundle.rego */**/*.rego
doesn't.
The error I receive by fregot is
fregot (fatal parse error):
"Standards/STD-OSE/v1_0_0/OSE16.rego" (line 43, column 14):
parse failed:
43| [, value] := walk(structure.spec.containers[])
^
unexpected "]"
The problem that there is no error in this construction, so I need your help in realising what's going on.
Jasper Van der Jeugt commented
fregot
only allows variables to be assigned using :=
-- this seems like a bug if OPA does allow unifying lists.
Maybe using [_, value] = walk(...)
helps as a workaround?