You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fregot, has a var (keyword) to declare variables, but when use this keyword on opa check, it show us this error message:
rego_parse_error: var cannot be used for rule name.
The text was updated successfully, but these errors were encountered:
Thanks for reporting! Looks like var (and possibly others, I'll check) need to be added to a list of reserved keywords. We should be able to get a fix for this pretty soon.
@marcoslopesbritto I'm having trouble reproducing this issue. Is there any chance you could share the code you were using, or the relevant portions? Knowing which versions of OPA and Fregot this applies to would also be useful.
If I have a Rego file that declares a var rule:
# test.rego
package play
var {
true
}
opa check test.rego reports no errors, and fregot repl test.rego loads the file fine.
This is using opa master (834aaee4c2b74a738183da736f1acf8314799888) and fregot v0.8.0.
Fregot, has a var (keyword) to declare variables, but when use this keyword on opa check, it show us this error message:
rego_parse_error: var cannot be used for rule name.
The text was updated successfully, but these errors were encountered: