-
Notifications
You must be signed in to change notification settings - Fork 326
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
Always use tool/flutter-sdk for devtools_tool + remote FLUTTER_ROOT #6776
Conversation
This removes some code I added to support using FLUTTER_ROOT for the SDK and instead just updates the devtools_tool shell scripts to always run from tools/flutter-sdk and just locate the Flutter SDK from the running VM. This makes the assumption that we _always_ want to use the DevTools version of Flutter and avoids any issues where you might have something different on PATH. It also renames the --use-flutter-from-path flag to --update-flutter/--no-update-flutter (and retains the default of updating).
tool/lib/commands/shared.dart
Outdated
BuildCommandArgs.updateFlutter.flagName, | ||
negatable: true, | ||
defaultsTo: true, | ||
help: 'Whether to update the Flutter SDK before building DevTools ' |
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.
nit: remove "before building DevTools" because this flag can be used for more than just the build command.
After removing, it should say 'Whether to update the Flutter SDK contained in the "tool/flutter-sdk" directory'
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.
Done!
- another minor fix I forgot to push earlier, which ensures if you pass
--no-update-flutter
we remove it before passing on to the local server.
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.
one comment but lgtm
auto label is removed for flutter/devtools/6776, due to - The status or check suite benchmarks has failed. Please fix the issues identified (or deflake) before re-applying this label. |
auto label is removed for flutter/devtools/6776, due to - The status or check suite benchmarks has failed. Please fix the issues identified (or deflake) before re-applying this label. |
Reverted this temporarily to unblock Flutter. |
…e FLUTTER_ROOT (flutter#6776)" (flutter#6820)" This reverts commit 79cde66.
This removes some code I added to support using
FLUTTER_ROOT
for the SDK and instead just updates thedevtools_tool
shell scripts to always run fromtools/flutter-sdk
and just locate the Flutter SDK from the running VM.This makes the assumption that we always want to use the DevTools version of Flutter and avoids any issues where you might have something different on
PATH
.It also renames the
--use-flutter-from-path
flag to--update-flutter
/--no-update-flutter
(and retains the default of updating).