Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Created by
brew bump
Created with
brew bump-formula-pr
.release notes
import future.keywords
into a module before use will be part of the Rego language by default, without the need to first import them.if
keyword will be required before the body of a rule.contains
keyword will be required when declaring a multi-value rule (partial set rule).This current release (
0.59.0
) introduces a new--rego-v1
flag to theopa fmt
andopa check
commands to facilitate the transition of existing policies to be compatible with the 1.0 syntax.When used with
opa fmt
, the--rego-v1
flag will format the module(s) according to the new Rego syntax in OPA 1.0.Formatted modules are compatible with both the current version of OPA and 1.0.
Modules using deprecated built-ins will terminate formatting with an error. Future versions of OPA will support rewriting applicable function calls with equivalent Rego compatible with 1.0.
When used with
opa check
, the--rego-v1
flag will check that the modules are compatible with both the current version of OPA and 1.0.Relevant Changes
--rego-v1
flag tocheck
cmd (#6429) authored by @johanfyllingopa fmt
(#6297) authored by @johanfyllingrego.v1
import (#6375) (authored by @johanfylling)rego.v1
) (#6356) authored by @ashutosh-narkarrego.v1
import (#6247) introduced in OPA 0.58.0, authored by @johanfyllingRuntime, Tooling, SDK
rule_head_refs
capabilities feature flag (#6334) authored by @johanfyllingTopdown and Rego
strings.render_template
to render templated strings (#6371) authored by @RDVasavadaMiscellaneous