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 1
1
# Changelog
2
2
3
+ ## 0.0.1+3
4
+
5
+ - Find SDK properly when invoked from inside SDK tests.
6
+
3
7
## 0.0.1+2
4
8
5
9
- 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]) {
33
33
}
34
34
35
35
// 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' ));
37
44
if (_isSdkDir (sdkDirectory)) return sdkDirectory;
38
45
39
46
// Try and locate the VM using 'which'.
Original file line number Diff line number Diff line change 1
1
name : cli_util
2
- version : 0.0.1+2
2
+ version : 0.0.1+3
3
3
author :
Dart Team <[email protected] >
4
4
description : A library to help in building Dart command-line apps.
5
5
homepage : https://github.com/dart-lang/cli_util
You can’t perform that action at this time.
0 commit comments