-
Notifications
You must be signed in to change notification settings - Fork 6k
Adds githooks that reminds to run gclient sync -D
#51156
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
e667402
to
8d3e86b
Compare
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.
Nice!
This change needs a little extra code to support |
8d3e86b
to
92836b2
Compare
gclient sync -D
gclient sync -D
92836b2
to
8832caa
Compare
final String postfix = io.stdout.supportsAnsiEscapes ? _reset : ''; | ||
io.stderr.writeln('$command: The engine source tree has been updated.'); | ||
io.stderr.writeln( | ||
'\n${prefix}You man need to run "gclient sync -D"$postfix\n', |
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?
'\n${prefix}You may need to run "gclient sync -D"$postfix\n',
…144639) flutter/engine@3e8b0de...49bc157 2024-03-05 [email protected] Fix typo in githook message (flutter/engine#51205) 2024-03-05 [email protected] Roll Skia from 453cb0d04584 to 875b356e4d96 (2 revisions) (flutter/engine#51202) 2024-03-05 [email protected] Add device selection to `et run` (flutter/engine#51184) 2024-03-05 [email protected] Roll Skia from de108a9c8b54 to 453cb0d04584 (2 revisions) (flutter/engine#51201) 2024-03-05 [email protected] Adds githooks that reminds to run `gclient sync -D` (flutter/engine#51156) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Windows does not pre-install python3. Previously Windows users would just use Python from depot tools, but this was broken by #51156.
This PR adds githooks for
post-checkout
,post-merge
,pre-rebase
that remind to rungclient sync -D
. This is probably going to print the reminder too much. Thepre-rebase
hook runs before agit pull --rebase
that is actually going to update something, but the other hooks may be needed to cover other workflows. The printed message will also include the hook that it comes from, so we can remove the message from hooks where it doesn't make sense.