Skip to content

Builtin changes for v1? #645

Discussion options

You must be logged in to vote

Hi there!

If you've changed your policies to follow 1.0 conventions (removed import rego.v1 and such), you'll need to get a capabilities.json file which contains the rego_v1 capability, or else the parser is going to work as it did before 1.0, and won't recognize that as valid. You can find capabilities files, including v1.0.0 here.

Alternatively, if you want to keep using the old syntax for a while, you should be able to run the opa build command with the --v0-compatible flag, and that should hopefully work with the capabilities file that you have (but would require that you keep rego.v1 imports).

Let me know how it goes!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@christophwille
Comment options

Answer selected by christophwille
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants