Skip to content

Commit 7be9e24

Browse files
authored
Small patch to fix macros revert in Dart SDK (#3732)
1 parent 8b94222 commit 7be9e24

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/src/model/package_builder.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,11 @@ class PubPackageBuilder implements PackageBuilder {
177177

178178
List<String> get _sdkFilesToDocument => [
179179
for (var sdkLib in _sdk.sdkLibraries)
180-
_sdk.mapDartUri(sdkLib.shortName)!.fullName,
180+
// TODO(srawlins): This bit is temporary, here in order to unblock some
181+
// unfortunate CI in the Dart SDK which is not designed well for when
182+
// SDK libraries are _removed_.
183+
if (!sdkLib.shortName.contains('macros'))
184+
_sdk.mapDartUri(sdkLib.shortName)!.fullName,
181185
];
182186

183187
/// Resolves a single library at [filePath] using the current analysis driver.

0 commit comments

Comments
 (0)