opa
opa copied to clipboard
`opa eval -b` does not honor the `--ignore` flag
❯ tree
.
├── p.rego
└── t.rego
1 directory, 2 files
Using a intentionally broken t.rego file, the following works for opa eval:
❯ opa eval -f pretty -d . --ignore t.rego data.p.allow
true
But using the -b/--bundle options does not:
❯ opa eval -f pretty -b . --ignore t.rego data.p.allow
1 error occurred: loading error: bundle .: 1 error occurred: t.rego:3: rego_parse_error: var cannot be used for rule name
Similar issues have been reported before for opa build (fixed) and opa test, but I could not find an issue reported for opa eval.
This issue was reported first in the OPA VS Code plug-in by @Ronnie-personal, where we sometimes have seen errors reported, and performance issues, caused by .git and other irrelevant directories and files getting included in the workspace bundle.
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. Although currently inactive, the issue could still be considered and actively worked on in the future. More details about the use-case this issue attempts to address, the value provided by completing it or possible solutions to resolve it would help to prioritize the issue.