-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Fix analysis script to run from anywhere #86683
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
Fix analysis script to run from anywhere #86683
Conversation
c21fc3a
to
96f2d20
Compare
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.
Verified by running the analysis script from within the repo, so this LGTM
Oh goodie, a Windows-only error. |
96f2d20
to
f6acf9f
Compare
print('Expected output $type'); | ||
} | ||
'''); | ||
} |
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: newlines at EOF here and below
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.
Fixed, thanks.
f6acf9f
to
0b2e8b5
Compare
0b2e8b5
to
1f1f64d
Compare
@@ -38,7 +38,8 @@ Future<String> capture(AsyncVoidCallback callback, { int exitCode = 0 }) async { | |||
|
|||
void main() { | |||
final String testRootPath = path.join('test', 'analyze-test-input', 'root'); | |||
final String dartPath = path.canonicalize(path.join('..', '..', 'bin', 'cache', 'dart-sdk', 'bin', Platform.isWindows ? 'dart.exe' : 'dart')); | |||
final String dartName = Platform.isWindows ? 'dart.exe' : '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.
the .exe
extension on Windows always trips me up 😆
Description
Fixes a small problem with the analyze.dart script that fixes it so that it can be invoked from any directory, not just the Flutter root.
Tests