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

Generate a checksum alongside the generated code to detect any manual modifications. #362

Open
lquerel opened this issue Sep 11, 2024 · 0 comments
Labels
ci/cd CI/CD related issue enhancement New feature or request

Comments

@lquerel
Copy link
Contributor

lquerel commented Sep 11, 2024

The Rust community expressed the need to create a CI check to ensure that no manual modifications have been made to the vendored generated code produced by Weaver. See this comment.

One option would be to update Weaver to generate a checksum (e.g., SHA256) for the generated code and store it in a file alongside the generated code. This would provide everything needed to create a CI check to verify that no manual changes have been made to the code in the repository, assuming we’ve also prevented rust fmt (or any other code formatter) from altering the generated code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/cd CI/CD related issue enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant