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

Add build_runner to pre-commit-hook #1257

Open
limwa opened this issue Jun 28, 2024 · 0 comments
Open

Add build_runner to pre-commit-hook #1257

limwa opened this issue Jun 28, 2024 · 0 comments

Comments

@limwa
Copy link
Member

limwa commented Jun 28, 2024

As the number of places where build_runner is used increases, we need a way to always ensure that the generated files in the repository are consistent with the files used to generate them.

This can be done in two main ways:

  1. Unstage all generated files and add them to the gitignore. In the CI, we would need to run build_runner. When we clone the repository, we would also need to run build_runner.
  2. Run build_runner in the pre-commit-hook. This ensures that the committed files are in sync, as long as the committer has the pre-commit-hook installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Product Backlog
Development

No branches or pull requests

1 participant