mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
docs/website/scripts: Control eval behavior via the rego.v1 import rather than setting the compatiblity flag
Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
This commit is contained in:
@@ -70,12 +70,6 @@ export default async function localEval(groups, groupName, opaVersion) {
|
||||
async function prepEval(groups, groupName, opaVersion) {
|
||||
const {module, package: pkg, query, input, included} = getGroupData(groups, groupName)
|
||||
const base = ['eval', '--fail'] // Fail on undefined
|
||||
|
||||
// eval pre-1.0 policies in v0 compatible mode.
|
||||
if (semver.valid(opaVersion) && semver.satisfies(semver.coerce(opaVersion), '<1.0.0')) {
|
||||
base.push('--v0-compatible')
|
||||
}
|
||||
|
||||
const rest = []
|
||||
const moduleFilenameMap = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user