-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[pigeon] Remove version from most test code #3660
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
Conversation
This adds a global option to prevent the Pigeon version from being output in the generated code warning, and enables it when generating the files that are validated by CI. Since we know the files are always up to date due to the CI checks, having the version of every file change in every PR just adds noise. Test files that haven't been consolidated into the new testing framework (mock_handler_tester, flutter_null_safe_unit_tests) still have the version for now, since they aren't yet validated by CI.
|
Overriding version and changelog; while there are production code changes here, they should be a no-op to all clients, and aren't intended for general use (although technically anyone using Pigeon as a library could set this), so there's no value in having it be its own release. |
tarrinneal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How am I going to make my butter if we stop all this churn?
| bool suppressVersion = false, | ||
| }) async { | ||
| return Pigeon.runWithOptions(PigeonOptions( | ||
| // Temporarily suppress the version output via the global flag if requseted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: requested
[pigeon] Remove version from most test code
This adds a global option to prevent the Pigeon version from being output in the generated code warning, and enables it when generating the files that are validated by CI. Since we know the files are always up to date due to the CI checks, having the version of every file change in every PR just adds noise.
Test files that haven't been consolidated into the new testing framework (mock_handler_tester, flutter_null_safe_unit_tests) still have the version for now, since they aren't yet validated by CI.
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).