-
Notifications
You must be signed in to change notification settings - Fork 6k
Fix pre-push githooks on Windows and enable all format checks #34374
Conversation
and fix the test issue on non-Windows
like the other format checkers
gspencergoog
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.
| @@ -1,10 +0,0 @@ | |||
| #!/bin/sh | |||
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.
Shouldn't this file be replaced with one that actually does the pre-push check? Or does just removing this run the general one instead?
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.
The original pre-push in tools/githooks works on all platforms now that Windows has all the checks working.
Granted people on Windows need to run gclient sync after this change to re-run tools/githooks/setup.py, which will modify the git config to use the common pre-push file on Windows. This will not be necessary on other platforms.

Enable running the pre-push githook with all the format checkers on Windows, just like on other platforms.
This PR changes how you build the engine on Windows, so a change in the Wiki Compiling the engine is required, specifically in the "Compiling for Windows" section. The ninja build command needs to be changed to
ninja -d keeprsp -C .\out\<dir created by previous step>Issues fixed by this PR
Changes to flutter/tests
This PR does not affect flutter/tests
Pre-launch Checklist
writing and running engine tests.
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.