This repository was archived by the owner on Nov 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 0.0.1+3
4+
5+ - Find SDK properly when invoked from inside SDK tests.
6+
37## 0.0.1+2
48
59- Support an executable in a symlinked directory.
Original file line number Diff line number Diff line change @@ -33,7 +33,14 @@ Directory getSdkDir([List<String> cliArgs]) {
3333 }
3434
3535 // Look relative to the dart executable.
36- Directory sdkDirectory = new File (Platform .executable).parent.parent;
36+ File platformExecutable = new File (Platform .executable);
37+ Directory sdkDirectory = platformExecutable.parent.parent;
38+ if (_isSdkDir (sdkDirectory)) return sdkDirectory;
39+
40+ // Handle the case where Platform.executable is a sibling of the SDK directory
41+ // (this happens during internal testing).
42+ sdkDirectory =
43+ new Directory (p.join (platformExecutable.parent.path, 'dart-sdk' ));
3744 if (_isSdkDir (sdkDirectory)) return sdkDirectory;
3845
3946 // Try and locate the VM using 'which'.
Original file line number Diff line number Diff line change 11name : cli_util
2- version : 0.0.1+2
2+ version : 0.0.1+3
33author : Dart Team <misc@dartlang.org>
44description : A library to help in building Dart command-line apps.
55homepage : https://github.com/dart-lang/cli_util
You can’t perform that action at this time.
0 commit comments