这是indexloc提供的服务,不要输入任何密码
Skip to content

Expose packagePath as a getter in FlutterCommand. #80026

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
merged 2 commits into from
Apr 8, 2021

Conversation

chingjun
Copy link
Contributor

@chingjun chingjun commented Apr 8, 2021

So that it can be overridden internally.

So that it can be overridden internally.
@chingjun chingjun requested a review from jonahwilliams April 8, 2021 08:07
@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Apr 8, 2021
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@google-cla google-cla bot added the cla: yes label Apr 8, 2021
Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

Can you leave a doc comment on packagesFilePath? At least so that we know it is overriden in case we forget in 1+ years.

I would also like a simple test case that shows this still works. You assert that an overriden and fixed packages file path is used for the build info instead of the field passed via the command line?

Also renamed packagesFilePath to packagesPath since it is more commonly
used in the code base.
@chingjun
Copy link
Contributor Author

chingjun commented Apr 8, 2021

Added test and comment. Also renamed packagesFilePath to packagesPath since it is more commonly used in the code base.

PTAL, thanks!

Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM thank you!

@chingjun chingjun changed the title Expose packageFilePath as a getter in FlutterCommand. Expose packagePath as a getter in FlutterCommand. Apr 8, 2021
@fluttergithubbot fluttergithubbot merged commit db51c6d into flutter:master Apr 8, 2021
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.

3 participants