-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[Windows] Add a flutter-dev script to run the flutter CLI from source
#153892
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
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). 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. The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group. |
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.
i'm gonna take your word for it that this works :)
| # If we're on Windows, invoke the batch script instead to get proper locking. | ||
| if [[ $OS =~ MINGW.* || $OS =~ CYGWIN.* || $OS =~ MSYS.* ]]; then | ||
| exec "${BIN_DIR}/flutter-dev.bat" "$@" | ||
| fi |
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 makes bin/flutter-dev consistent with bin/flutter
bin/flutter-dev.bat
Outdated
| REM Do not use the CALL command in the next line to execute Dart. CALL causes | ||
| REM Windows to re-read the line from disk after the CALL command has finished | ||
| REM regardless of the ampersand chain. | ||
| "%dart%" --packages="%flutter_tools_dir%\.dart_tool\package_config.json" %FLUTTER_TOOL_ARGS% "%script_path%" %* & "%exit_with_errorlevel%" |
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 line is different from bin/flutter.bat
|
|
||
| SET flutter_tools_dir=%FLUTTER_ROOT%\packages\flutter_tools | ||
| SET cache_dir=%FLUTTER_ROOT%\bin\cache | ||
| SET script_path=%flutter_tools_dir%\bin\flutter_tools.dart |
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 line is different from bin/flutter.bat
|
EDIT: Actually, this should be pretty easy to integration test. I'll do some digging tomorrow. |
|
@loic-sharma: Thanks! Let's also add the flag that Slava added here: |
matanlurey
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.
test-exempt: This is a dev-only tool, we don't mandate testing of these.
Wow that's a massive improvement, that's awesome. Added! |
|
auto label is removed for flutter/flutter/153892, due to - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
…ce (flutter#153892) Follow-up to flutter#153599, adds support for the objectively better OS ð��¼
Follow-up to #153599, adds support for the objectively better OS 👼