Skip to content

Commit 94118ac

Browse files
docs/website/scripts: Control eval behavior via the rego.v1 import rather than setting the compatiblity flag
Signed-off-by: Ashutosh Narkar <[email protected]>
1 parent bb10c56 commit 94118ac

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

docs/website/scripts/live-blocks/src/preprocess/localEval.js

-6
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,6 @@ export default async function localEval(groups, groupName, opaVersion) {
7070
async function prepEval(groups, groupName, opaVersion) {
7171
const {module, package: pkg, query, input, included} = getGroupData(groups, groupName)
7272
const base = ['eval', '--fail'] // Fail on undefined
73-
74-
// eval pre-1.0 policies in v0 compatible mode.
75-
if (semver.valid(opaVersion) && semver.satisfies(semver.coerce(opaVersion), '<1.0.0')) {
76-
base.push('--v0-compatible')
77-
}
78-
7973
const rest = []
8074
const moduleFilenameMap = {}
8175

0 commit comments

Comments
 (0)