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
Integrate "dart fix" into flutter tool #70113
Comments
( What happens if someone temporarily upgrades to master/dev/beta, applies fixes, and then wants to go back to master ) |
|
/cc @csells @devoncarew |
The fixes do already show up as quick fixes in the IDE. |
We aren't currently planning on supporting any form of downgrade. Users would need to use their source code control system to revert the changes. |
|
Seems reasonable! |
|
Re: prompting users to run |
|
We could add something like |
|
Do we have a way to check if there were new dart fix metadata files added? We could weaken it a bit to detecting potential fixes and directing users to |
The current design is to have a single file per package, but the tool could easily compare the length of the file or an MD5 hash both before and after the upgrade to determine whether there are any new fixes that users might want to run. |
|
I actually think either of those approaches (running analyzer or checking fixes) will not be feasible on upgrade, since we don't require that command is run in the context of a flutter project. It would have to be a per-project check of some kind |
|
I was thinking of a message more like: Some APIs have been modified as part of this upgrade. Running |
goderbauer commentedNov 9, 2020
This issue is to discuss whether/how we should integrate "dart fix" into flutter tool. Two useful integrations I could see are:
flutter fixavailable to apply available fixes to my current fluter project (this command would probably just pipe through to "dart fix").flutter fixto apply any available fixes for breaking changes to their flutter projects (maybe we could automatically detect that new fixes are available in the new version by comparing the dartfix files pre and post upgrade)./cc @Piinks @jonahwilliams @bwilkerson
The text was updated successfully, but these errors were encountered: