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

ast/parser: add hint to future-proof imports #6968

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

srenatus
Copy link
Contributor

Just an idea, if we ever introduce an

import awesome

and people start receiving "unknown import" errors on outdated OPA versions, they'll at least give a hint.

This could be extended to cover the other synthetic imports, like rego.* and future.*, but it's a start...

Just an idea, if we ever introduce an

    import awesome

and people start receiving "unknown import" errors on outdated
OPA versions, they'll at least give a hint.

This could be extended to cover the other synthetic imports, like
`rego.*` and `future.*`, but it's a start...

Signed-off-by: Stephan Renatus <stephan@styra.com>
Copy link
Contributor

@johanfylling johanfylling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it 👍

@srenatus srenatus merged commit 25d21f5 into open-policy-agent:main Aug 28, 2024
28 checks passed
@srenatus srenatus deleted the sr/future-proof-imports branch August 28, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants