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

REPL prints empty string when defining rule with ref name #7301

Closed
tsandall opened this issue Jan 22, 2025 · 0 comments · Fixed by #7302
Closed

REPL prints empty string when defining rule with ref name #7301

tsandall opened this issue Jan 22, 2025 · 0 comments · Fixed by #7302
Labels

Comments

@tsandall
Copy link
Member

This is just a minor bug, it looks like the REPL is not rendering the rule name correctly.

(main)torin:~/go/src/github.com/styrainc/concourse-defs$ opa run
OPA 1.1.0-dev (commit 4782cc5721d37d807e60cbedc1a7cc201257eba9, built at 2025-01-21T13:49:47Z)

Run 'help' to see a list of commands and check for updates.

> a.b.c.d if { input.foo }
Rule '' defined in package repl. Type 'show' to see rules.

Specifically in the message that the REPL prints:

Rule '' defined in package repl. Type 'show' to see rules.
     ^^
@tsandall tsandall added the bug label Jan 22, 2025
anderseknert added a commit to anderseknert/opa that referenced this issue Jan 22, 2025
Also found a place in the inspect command code with the same
issue, so fixed it there too.

Fixes open-policy-agent#7301

Signed-off-by: Anders Eknert <[email protected]>
anderseknert added a commit to anderseknert/opa that referenced this issue Jan 22, 2025
Also found a place in the inspect command code with the same
issue, so fixed it there too.

Fixes open-policy-agent#7301

Signed-off-by: Anders Eknert <[email protected]>
anderseknert added a commit that referenced this issue Jan 22, 2025
Also found a place in the inspect command code with the same
issue, so fixed it there too.

Fixes #7301

Signed-off-by: Anders Eknert <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant