Skip to content

Commit 650a7f6

Browse files
committed
Document embedder SDK packages only when they are in the same path as the main package.
1 parent 031347e commit 650a7f6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/src/model.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6013,8 +6013,14 @@ class Package extends LibraryContainer
60136013
/// was not excluded on the command line.
60146014
bool get isLocal {
60156015
if (_isLocal == null) {
6016+
// Document embedder SDK packages only when they are in the same path as
6017+
// the main package.
6018+
final partOfEmbedderSdk = packageGraph.hasEmbedderSdk &&
6019+
packageMeta.isSdk &&
6020+
packageMeta.resolvedDir
6021+
.startsWith(packageGraph.packageMeta.resolvedDir);
60166022
_isLocal = (packageMeta == packageGraph.packageMeta ||
6017-
packageGraph.hasEmbedderSdk && packageMeta.isSdk ||
6023+
partOfEmbedderSdk ||
60186024
packageGraph.config.autoIncludeDependencies) &&
60196025
!packageGraph.config.isPackageExcluded(name);
60206026
}

0 commit comments

Comments
 (0)