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

OPA REPL compile error for array refs #5498

Open
philipaconrad opened this issue Dec 21, 2022 · 3 comments
Open

OPA REPL compile error for array refs #5498

philipaconrad opened this issue Dec 21, 2022 · 3 comments

Comments

@philipaconrad
Copy link
Contributor

Short description

  • OPA version: v0.46.0+
  • Affects REPL only

Example CLI session:

$ opa run
OPA 0.48.0-dev (commit d12e959922e3f2df55f9add4a2ce945017fd669f-dirty, built at 2022-12-19T21:30:11Z)

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

> a[0] := 1
1 error occurred: 1:1: rego_compile_error: cannot assign to ref
> 

Expected behavior

The statement a[0] := 1 should not generate a compile error.

@stale
Copy link

stale bot commented Jan 20, 2023

This issue has been automatically marked as inactive because it has not had any activity in the last 30 days.

@stale stale bot added the inactive label Jan 20, 2023
@humbertoc-silva
Copy link
Contributor

humbertoc-silva commented May 10, 2024

The same occurs with:

a["foo"] := "bar"

@stale stale bot removed the inactive label May 10, 2024
Copy link

stale bot commented Jun 9, 2024

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.

@stale stale bot added the inactive label Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants