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

Import variable is not defined but rule is still running #2672

Closed
NehaSachan opened this issue Aug 31, 2020 · 1 comment
Closed

Import variable is not defined but rule is still running #2672

NehaSachan opened this issue Aug 31, 2020 · 1 comment

Comments

@NehaSachan
Copy link

//first.rego
package demo

import data.vars.limit as numeric_limit

SomeRule[result] {
x:= 100
x > numeric_limit
result := "OK"
}

//second.rego


package vars

//no variable defined here.

Expected Behaviour:
It should throw error that there is no data.vars.limit variable OR should fail the rule with error.

ACtual Behaviour:
Its running without any error.

@tsandall
Copy link
Member

Closing this as it's a duplicate of #491.

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

No branches or pull requests

2 participants