Skip to content

[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

Merged

Conversation

christopherfujino
Copy link
Contributor

@christopherfujino christopherfujino commented Mar 3, 2023

Fixes #99928

Manually tested by running flutter update-packages --force-upgrade and it successfully recreated #121847

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Mar 3, 2023
@@ -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;
Copy link
Contributor Author

@christopherfujino christopherfujino Mar 3, 2023

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:

  1. all the logic for this is in a single library, so it didn't matter that it was public
  2. 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,
Copy link
Contributor Author

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

@christopherfujino
Copy link
Contributor Author

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@christopherfujino christopherfujino added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 3, 2023
@auto-submit auto-submit bot merged commit 26b7456 into flutter:master Mar 3, 2023
@christopherfujino christopherfujino deleted the remove-late-from-update-packages branch March 3, 2023 22:52
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 4, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[flutter_tools] Remove late from commands/update_packages.dart
2 participants