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
It might be uncommon to do this, but it's not wrong to expect this to work.
One peculiarity is that we've consciously made an exception for
```
input := "whatever"
allow with input as true
```
where the with-target "input" was meant not to be replaced although there's
a local variable shadowing "input". This change has become a bit trickier
because this behaviour is kept intact. Note that it's only possible in non-strict
mode (Rego v0).
Fixes#6979
Small refactoring included:
* ast/compile: remove With from recursive term rewriting
I could find no term where this actually mattered, so I've simplified the code
a little bit.
Signed-off-by: Stephan Renatus <[email protected]>
Short description
Sometimes when using the
every
construct, variables from the outer scope are not recognized.OPA version = 0.67.0
Steps To Reproduce
Here is one reproduction https://github.com/bluebrown/opa-every-with-issue
See https://openpolicyagent.slack.com/archives/CBR63TK2A/p1725004042414319 for more context and examples
The text was updated successfully, but these errors were encountered: