| Index: utils/pub/io.dart
|
| diff --git a/utils/pub/io.dart b/utils/pub/io.dart
|
| index b227378a28f552f3c541967d640d76d219dd0229..704d3d1e68525ddab0de45a5c5dd0357230d6286 100644
|
| --- a/utils/pub/io.dart
|
| +++ b/utils/pub/io.dart
|
| @@ -398,7 +398,9 @@ Future<File> createSymlink(from, to) {
|
| Future<File> createPackageSymlink(String name, from, to,
|
| {bool isSelfLink: false}) {
|
| // See if the package has a "lib" directory.
|
| - from = join(from, 'lib');
|
| + // Note(Sam): Relative paths causes issues when cwd is different.
|
| + // also, absolute paths are safer when app is moved around.
|
| + from = getFullPath(join(from, 'lib'));
|
| return dirExists(from).then((exists) {
|
| log.fine("Creating ${isSelfLink ? "self" : ""}link for package '$name'.");
|
| if (exists) return createSymlink(from, to);
|
|
|