mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-13 03:42:35 -06:00
b39b34760e
Any time we do a compilation in the Rego object (or helpers) we need to be careful to setup a conflict check that is valid for the current context (both literal golang ctx and current storage transaction). This isn't much of a concern if the Rego instance owns the compiler, but if an external one was provided we need to be careful to update the conflict check before compiling. This was already doing the "right thing" when activating bundles, but for partial evaluation results that were being updated on the compiler it was not. Fixes: #2197 Signed-off-by: Patrick East <east.patrick@gmail.com>