Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while parsing [_, cont] := walk(structure.spec.containers[_]) #303

Open
olegroom opened this issue Dec 6, 2022 · 1 comment
Open
Labels
bug Something isn't working

Comments

@olegroom
Copy link

olegroom commented Dec 6, 2022

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.

@jaspervdj-luminal jaspervdj-luminal added the bug Something isn't working label Jul 13, 2023
@jaspervdj-luminal
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants