-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rego: Fix panic when partial evaluating w/ tracers
There was a typo from a while back that caused problems with this. It would only occur in cases where the Rego object was created without tracers, prepared, and then partially evaluated with tracers supplied as part of the evaluation context. Any of the other code paths would actually work as the original Rego object would still have them and the (wrong) reference wouldn't cause a panic. At some point more recently we changed `opa eval` to split up its options for the Rego object and evaluation. Doing this caused the problem to surface when doing anything with `opa eval -p --explain ..` Fixes: #2007 Signed-off-by: Patrick East <east.patrick@gmail.com>
- Loading branch information
1 parent
ca18a95
commit 9b7c645
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters