-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
chore(migrate): remove version check #4990
base: next
Are you sure you want to change the base?
Conversation
let new_linter_member = add_members_to_linter_member( | ||
&linter_member, | ||
linter_members.clone(), | ||
linter_separators.clone(), | ||
); |
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 first implementation was adding the new member at the very end. While it's more efficient, it basically moves around an existing member, causing plenty of diffs.
I decided that it's best to pay a bit more in memory, but at least we do swap the members in the same position, so the number the final diff is very limited.
543f398
to
ad4da5c
Compare
Here's an update. The I ran the PR against the ecosystem and found three projects that were failing. Hence, I also added their configuration files in the Apologies for the problems caused, but the migration should be stable now :) |
Thanks for the update!
Have you tried to reduce to a minimal reproduction fore every failure? |
Yes, the failures were due to We required bigger configs to test all the migrations together. However, the majority of the issues were around the move of rules |
Summary
This PR fixes a number of issues in our migration rules:
TheVersion
service. It's not needed anymore. Less code :)rome.json
inside the migration. We removed it, and we don't handle it anymore. Hence, the fieldconfigration_directory_path
isn't needed anymore.useWhile
from the styling rules because it's handled byuse_while.rs
. This was causing another infinite loop whereuseWhile
andstyleRules
were creating one action after the other... lol!Test Plan
Our biome.json was causing the loop, so I added it as a test case in our testing suite.
I also run the migration to our
biome.json
and made sure there wasn't a loop anymore