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
Opa version: 0.34.2
When I use import future.keywords.in in a opa policy and then bundle it with optimization as 1 or 2, opa doesn't start and complains with an error. Please see below to reproduce.
@keshavprasadms @srenatus is working on this right now. The fix will be released in v0.36.0 at the end of the month. If you need this backported, we could potentially cherry-pick it into v0.35.
When a module is formatted that has calls to `internal.member_2` or
`internal.member_3`, which get pretty-printed as infix `in` operator
calls, the formatter now ensures that the corresponding future keyword
import is present.
Fixes#4111.
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
Short description
Opa version: 0.34.2
When I use
import future.keywords.in
in a opa policy and then bundle it with optimization as 1 or 2, opa doesn't start and complains with an error. Please see below to reproduce.main.rego
policy.rego
Creating the bundle with optimization level 0 works
But creating the bundle with optimization level 1 or 2 doesn't start opa
Could you please tell me if I am doing something wrong? How can I achive optimizations 1 or 2 using future.keywords as imports.
The text was updated successfully, but these errors were encountered: