Skip to content

[flutter_tools] fix type error in flutter update-packages --jobs=n - #98283

Merged
fluttergithubbot merged 2 commits into
flutter:masterfrom
chris-forks:fix-type-error-in-update-packages
Feb 11, 2022
Merged

fluttergithubbot merged 2 commits into
flutter:masterfrom
chris-forks:fix-type-error-in-update-packages

Conversation

@christopherfujino

@christopherfujino christopherfujino commented Feb 11, 2022 •

Copy link
Copy Markdown
Contributor

Fixes #98284

The original code was:

      final TaskQueue<void> queue = TaskQueue<void>(maxJobs: intArg('jobs'));

but the intArg() function casts a dynamic -> int?, but jobs is actually a String?

I started to do a null-safety migration, but I think I will land that in a different PR in case it needs to be reverted.

@flutter-dashboard flutter-dashboard Bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Feb 11, 2022
@christopherfujino
christopherfujino requested review from gspencergoog and removed request for gspencergoog February 11, 2022 20:26
@christopherfujino

Copy link
Copy Markdown
Contributor Author

Given all the tests failed, it looks like this is still wrong...

@christopherfujino

Copy link
Copy Markdown
Contributor Author

Given all the tests failed, it looks like this is still wrong...

Ironically the failure is something I fixed in my null-safe branch

@christopherfujino
christopherfujino requested review from gaaclarke and gspencergoog and removed request for gspencergoog February 11, 2022 20:44

@gaaclarke gaaclarke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@fluttergithubbot
fluttergithubbot merged commit 289988d into flutter:master Feb 11, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 11, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Feb 11, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 11, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Feb 12, 2022
@christopherfujino
christopherfujino deleted the fix-type-error-in-update-packages branch March 24, 2022 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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] flutter update-packages --jobs=n fails with a type error

3 participants