Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in REPL when defining "input" document #231

Closed
tsandall opened this issue Jan 26, 2017 · 0 comments
Closed

Bug in REPL when defining "input" document #231

tsandall opened this issue Jan 26, 2017 · 0 comments
Labels

Comments

@tsandall
Copy link
Member

Example:

torin:~$ docker run -it --rm openpolicyagent/opa:0.4.0
OPA 0.4.0 (commit 4ea2b27, built at 2017-01-25T18:34:56Z)

Run 'help' to see a list of commands.

> input = 1
error: 1:1: missing input document

The problem is that the statement (input = 1) is compiled as a query before checking if it's parse-able as a rule. The compile step fails and so an error is printed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant