-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Use real flutter root for finding pub in command integration test #64021
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
Conversation
| Logger logger; | ||
|
|
||
| setUp(() { | ||
| platform = const LocalPlatform(); |
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.
This was set twice
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.
copy-paste strikes again
|
Was this just passing because of the CWD on cirrus? additionally, should we move this to the integration shard to make it clear it is absolutely not a unit test? |
christopherfujino
left a comment
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.
LGTM.
For a later PR, should we move this to permeable?
When I run I tried to track down the leak but I couldn't spot it, I should probably spend more time on that but I got distracted. |
Does |
|
test.dart runs with FLUTTER_ROOT environment variable set |
jonahwilliams
left a comment
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.
LGTM
Description
This "hermetic" test uses real pub.
FlutterCommandRunner.initFlutterRoot();was setting the cache root to../...analyze_continuously_testrunspub getrelative to the temp directory, and../../bin/cache/dart-sdk/bin/pubdoesn't exist there.Related Issues
Fixes #64008
Checklist
///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change