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

Make and generate_code.sh generate same outputs #6855

Merged
merged 6 commits into from
Sep 24, 2021

Conversation

dbaileychess
Copy link
Collaborator

Fixes #6843

There were some differences between the arguments in the CMakeLists.txt file and test/generate_code.sh scripts that made modified files after a clean build.

The discrepancy occurred in #6613

@github-actions github-actions bot added c# c++ codegen Involving generating code from schema labels Sep 22, 2021
@github-actions github-actions bot removed codegen Involving generating code from schema c# labels Sep 22, 2021
@CasperN
Copy link
Collaborator

CasperN commented Sep 23, 2021

LGTM! Sorry for introducing the bug. Can you add a line in .appveyor/check-generated-code.bat and scripts/check-generated-code.sh to diff before generate_code.(sh|bat) is called so this would be caught at CI next time?

@github-actions github-actions bot added the CI Continuous Integration label Sep 23, 2021
@dbaileychess
Copy link
Collaborator Author

@CasperN Added the checks.

@dbaileychess
Copy link
Collaborator Author

Ha, it already caught an error

@dbaileychess
Copy link
Collaborator Author

@CasperN There are some oddities with the legacy microsoft build that I didn't want to hold up. So I just added the checks to the linux scripts/check-generated-code.sh

@dbaileychess dbaileychess merged commit e2b26ee into google:master Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ CI Continuous Integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Building creates diffs that don't match generate_code.sh
2 participants