Skip to content

add preflight compilation check#1266

Closed
amalavet wants to merge 11 commits intomainfrom
ale/compile
Closed

add preflight compilation check#1266
amalavet wants to merge 11 commits intomainfrom
ale/compile

Conversation

@amalavet
Copy link
Copy Markdown
Contributor

@amalavet amalavet commented Feb 24, 2026

What Changed? Why?

To ensure that all generated go files are free of compilation errors, I have added a preflight check that compiles them prior to officially writing them. It can be bypassed using a config flag.

How was it tested?

Locally generation passes compilation checks:
make generate
make regenerate-golden-test-files
If I add a bug that causes a compilation error, the check fails as expected

Where did you document your changes?

https://github.com/grafana/grafana-app-sdk/blob/ale/compile/docs/code-generation.md#skippreflightcompilationcheck

Notes to Reviewers

This was pretty much vibe coded with codex, I am impressed with how it did, but I am not confident that this is the most simple approach.

@amalavet amalavet closed this Mar 26, 2026
@amalavet amalavet deleted the ale/compile branch March 31, 2026 18:56
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.

1 participant