Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rego: Setting query Rego-version from configured imports #6706

Merged

Conversation

johanfylling
Copy link
Contributor

When rego.v1 is in the list of imports directly applied on the rego.Rego SDK struct, this import, and it's effects, is applied to the query when parsed.

This change affects the eval and bench commands when the --imports flag is used.

Fixes: #6701

When `rego.v1` is in the list of imports directly applied on the `rego.Rego` SDK struct, this import, and it's effects, is applied to the query when parsed.
This change affects the `eval` and `bench` commands when the `--imports` flag is used.

Fixes: open-policy-agent#6701
Signed-off-by: Johan Fylling <[email protected]>
Copy link

netlify bot commented Apr 22, 2024

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit 60c1fc3
🔍 Latest deploy log https://app.netlify.com/sites/openpolicyagent/deploys/66266d2c07312400084550d4
😎 Deploy Preview https://deploy-preview-6706--openpolicyagent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Signed-off-by: Johan Fylling <[email protected]>
Copy link
Member

@ashutosh-narkar ashutosh-narkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ashutosh-narkar ashutosh-narkar merged commit 091286b into open-policy-agent:main Apr 22, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rego.v1 import does not enable future keywords in query compiler
2 participants