Skip to content

rego_unsafe_var_error reported without location #8719

Description

@anderseknert

Minimal nonsense repro:

package p

r[x] := y if {
	some x
	y := [_]
}
> opa check p.rego
1 error occurred: rego_unsafe_var_error: var x is unsafe

I expect this error to be reported with location data attached.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions