-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 parse: Allow source location to be provided in output #3143
Comments
Just to provide a bit more background here. While an easy fix would be just changing the Something like this, but preferably without introducing a new dependency just for this. A custom marshaling function could also be used, but it would need to traverse the full AST and not just the top nodes. |
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. |
I have a PR open for this here: #5576. See discussion there for my thoughts on the implementation and the suggested approach above. |
Expected Behavior
To enable better tooling around the OPA AST, it would be helpful if the
opa parse
command could include source locations in the output.. either by default or when provided a flag, like--location
or--include-location
.The text was updated successfully, but these errors were encountered: