-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[flutter_tools] remove late from update-packages command #121891
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
[flutter_tools] remove late from update-packages command #121891
Conversation
@@ -1274,8 +1285,7 @@ class PubspecDependency extends PubspecLine { | |||
/// dependencies/dev_dependencies section, or a dependency_overrides section. | |||
/// We track this so that we can put ourselves in the right section when | |||
/// generating the fake pubspec.yaml. | |||
bool get lockIsOverride => _lockIsOverride; | |||
late bool _lockIsOverride; | |||
bool? _lockIsOverride; |
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.
I deleted the public getter, since:
- all the logic for this is in a single library, so it didn't matter that it was public
- it obscured my editor reference list, since assignments were to the private field, but accesses were to the public getter.
Thus, by consolidating for a single field, I'm optimizing for my future sanity having to read this code
isTransitive: isTransitive, | ||
version: version, | ||
kind: stripped.isEmpty ? DependencyKind.unknown : DependencyKind.normal, sourcePath: filename, | ||
isDevDependency: isDevDependency, |
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.
only change here is adding this line, and then formatting
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.
Fixes #99928
Manually tested by running
flutter update-packages --force-upgrade
and it successfully recreated #121847