Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@mtolmacs
Copy link
Contributor

@mtolmacs mtolmacs commented Jun 29, 2022

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

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@mtolmacs mtolmacs marked this pull request as ready for review June 29, 2022 19:02
like the other format checkers
Copy link
Contributor

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

Thanks for doing this! Just one nit.

@@ -1,10 +0,0 @@
#!/bin/sh
Copy link
Contributor

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?

Copy link
Contributor Author

@mtolmacs mtolmacs Jul 13, 2022

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.

@gspencergoog gspencergoog added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 13, 2022
@auto-submit auto-submit bot merged commit 9fb5d8c into flutter:main Jul 13, 2022
@mtolmacs mtolmacs deleted the windows-prepush-fix branch July 14, 2022 09:47
betrevisan pushed a commit to betrevisan/engine that referenced this pull request Jul 15, 2022
@mtolmacs mtolmacs mentioned this pull request Jul 20, 2022
8 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Engine pre-commit hooks don't work on windows

3 participants