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

dev: allow editing policies in Regal bundle without rebuilding Regal #1105

Open
anderseknert opened this issue Sep 12, 2024 · 0 comments
Open

Comments

@anderseknert
Copy link
Member

anderseknert commented Sep 12, 2024

This doesn't really apply to regal lint, as that's a one-off process anyway. But as more and more logic of the language server is moved from Go to Rego, it's becoming apparent that having to rebuild Regal and restart the language server (by restarting the editor) isn't as nice experience as it could be.

Famous last words for sure, but I think the solution could be simple. Enable "dev mode" by means of an environment variable, or regal language-server --dev flag, that when enabled does not source policies from the embedded Go code, but rather from the bundle directory on disk. This would be less performant for sure, but I think we can live with a hit to that if it means we get to see our changes as we work on them.

@anderseknert anderseknert changed the title Don dev: allow editing policies in Regal bundle without rebuilding Regal Sep 12, 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

1 participant