Index: sdk/lib/_internal/pub/lib/src/barback.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/barback.dart b/sdk/lib/_internal/pub/lib/src/barback.dart |
index 83b63de92b8f8cbc582889014261b7e1be6908fe..712faa330e22d7a2ffff18882b779bba1d26a1ba 100644 |
--- a/sdk/lib/_internal/pub/lib/src/barback.dart |
+++ b/sdk/lib/_internal/pub/lib/src/barback.dart |
@@ -204,7 +204,8 @@ Uri idToPackageUri(AssetId id) { |
throw new ArgumentError("Asset id $id doesn't identify a library."); |
} |
- return new Uri(scheme: 'package', path: id.path.replaceFirst('lib/', '')); |
+ return new Uri(scheme: 'package', |
+ path: path.url.join(id.package, id.path.replaceFirst('lib/', ''))); |
} |
/// Converts [uri] into an [AssetId] if its path is within "packages". |