mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
Adding --v1-compatible flag to all previously unsupported command line commands (#6521)
In addition to those commands already supported: * build * check * eval * fmt * test support has been added to the following commands: * `bench` * `deps` * `exec` * `inspect` * `parse` * `run` (command `server` and `REPL`) Fixes: #6520 Signed-off-by: Johan Fylling <johan.dev@fylling.se>
This commit is contained in:
@@ -190,6 +190,7 @@ func (fl *fileLoader) WithJSONOptions(opts *astJSON.Options) FileLoader {
|
||||
// WithRegoV1Compatible enforces Rego v0 with Rego v1 compatibility.
|
||||
// See ParserOptions.RegoV1Compatible for more details.
|
||||
// Deprecated: use WithRegoVersion instead
|
||||
// TODO: Remove, this is an internal type, so won't be a breaking change.
|
||||
func (fl *fileLoader) WithRegoV1Compatible(compatible bool) FileLoader {
|
||||
fl.opts.RegoV1Compatible = compatible
|
||||
return fl
|
||||
|
||||
Reference in New Issue
Block a user