You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation is pretty clear that a module must at least contain
a package, so it is safe to say that an empty file isn't valid.
Previously the helper would just return a nil module and nil error, it
will now return an error.
Fixes: open-policy-agent#2054
Signed-off-by: Patrick East <east.patrick@gmail.com>
The documentation is pretty clear that a module must at least contain
a package, so it is safe to say that an empty file isn't valid.
Previously the helper would just return a nil module and nil error, it
will now return an error.
Fixes: #2054
Signed-off-by: Patrick East <east.patrick@gmail.com>
Expected Behavior
Running the following code in order to pre-compile the rego policy should return an error (in my opinion):
This happens when the input is empty or contains only comments
e.g., this input will also fail:
Actual Behavior
Ran it as a test, and got a panic:
runtime error: invalid memory address or nil pointer dereference
Steps to Reproduce the Problem
v0.15.1
Additional Info
The text was updated successfully, but these errors were encountered: