Skip to content

[flutter_tools] document flutter root initialization - #67884

Merged
jonahwilliams merged 4 commits into
flutter:masterfrom
jonahwilliams:refactor_flutter_root_1
Oct 27, 2020
Merged

jonahwilliams merged 4 commits into
flutter:masterfrom
jonahwilliams:refactor_flutter_root_1

Conversation

@jonahwilliams

@jonahwilliams jonahwilliams commented Oct 12, 2020 •

Copy link
Copy Markdown
Contributor

Description

Moves the flutter root initialization to a static method on the cache. This is a small step towards making this functionality non-static and instead injected like normal members - however, completely removing all of the static-ness at once was too large of a change.

Instead document and add unit tests and change existing code as little as possible.

#47161

@flutter-dashboard flutter-dashboard Bot added tool Affects the "flutter" command-line tool. See also t: labels. work in progress; do not review labels Oct 12, 2020
@google-cla google-cla Bot added the cla: yes label Oct 12, 2020
@jonahwilliams
jonahwilliams marked this pull request as ready for review October 27, 2020 17:27
}

// If run from a bare script within the repo.
if (script.contains('flutter/packages/')) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Could not find any usage of these

@zanderso zanderso 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 w/ nit

@required FileSystem fileSystem,
@required UserMessages userMessages,
}) {
String process(String path) {

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.

Maybe normalize instead of process?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@jonahwilliams
jonahwilliams merged commit 9e5e763 into flutter:master Oct 27, 2020
@jonahwilliams
jonahwilliams deleted the refactor_flutter_root_1 branch October 27, 2020 22:20
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.

2 participants