| Index: sdk/lib/_internal/pub_generated/lib/src/io.dart
|
| diff --git a/sdk/lib/_internal/pub_generated/lib/src/io.dart b/sdk/lib/_internal/pub_generated/lib/src/io.dart
|
| index 16682ddf0c97269962928b29138f1cb514267887..d1502c87a2f1c4019eddf67045a1ff7460d9de34 100644
|
| --- a/sdk/lib/_internal/pub_generated/lib/src/io.dart
|
| +++ b/sdk/lib/_internal/pub_generated/lib/src/io.dart
|
| @@ -488,15 +488,13 @@ String assetPath(String target) {
|
| 'asset',
|
| target);
|
| } else {
|
| - return path.join(
|
| - path.dirname(libraryPath('pub.io')),
|
| - '..',
|
| - '..',
|
| - 'asset',
|
| - target);
|
| + return path.join(pubRoot, 'asset', target);
|
| }
|
| }
|
|
|
| +/// Returns the path to the root of pub.
|
| +String get pubRoot => path.join(repoRoot, 'sdk', 'lib', '_internal', 'pub');
|
| +
|
| /// Returns the path to the root of the Dart repository.
|
| ///
|
| /// This throws a [StateError] if it's called when running pub from the SDK.
|
|
|