Skip to content

Commit

Permalink
docs/website/scripts: Control eval behavior via the rego.v1 import ra…
Browse files Browse the repository at this point in the history
…ther than setting the compatiblity flag

Signed-off-by: Ashutosh Narkar <[email protected]>
  • Loading branch information
ashutosh-narkar committed Dec 20, 2024
1 parent bb10c56 commit 94118ac
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions docs/website/scripts/live-blocks/src/preprocess/localEval.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}

Expand Down

0 comments on commit 94118ac

Please sign in to comment.