-
Notifications
You must be signed in to change notification settings - Fork 324
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
Upgrade to ormolu 0.1.2.0 #1145
Conversation
96dc868
to
2826206
Compare
2826206
to
29a04a2
Compare
The failure of |
29a04a2
to
b9430cd
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.
This is nice!
Perhaps you want to wait with merging until we've merged #1180, and are ready to use it.
We could already use the script without it being merged. Might even make sense so we can battle-test it and adjust it as we go. |
This decreases the diff resulting from running Ormolu 0.1.2.0 from 226 files changed, 2611 insertions(+), 2316 deletions(-) to 213 files changed, 1968 insertions(+), 1759 deletions(-)
177bebf
to
9b395f7
Compare
Upgrading Ormolu can be painful, because the style will often change in a lot of places (see for example #1145). Any active branches/PRs will then have to rebase onto these changes and resolve the resulting conflicts. It becomes a bit less cumbersome after first squashing all commits of the branch into a single one, but that's often not desirable. This script will automate the rebasing process, keeping the (linear) history of intact and making the commits appear as if the changes had been applied onto the newly-formatted version all along.
I'll merge this once the integration tests passed. (for reference, the |
See https://github.com/zinfra/backend-issues/issues/1623
Don't merge yet. We'll wait for a good moment where we don't have many PRs with Haskell changes in progress.
It should not take much time to rebase this PR then (if we just re-create the
run ormolu
commit instead of rebasing it).Main Ormolu changes since 0.0.5.0 we care about:
Changes that cause most diffs: