From 5d00135fc379bf50787b660409579535c3c26ea1 Mon Sep 17 00:00:00 2001 From: Sigurd Meldgaard Date: Fri, 13 Dec 2024 08:59:23 +0000 Subject: [PATCH] Explanatory comment --- lib/src/package.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/package.dart b/lib/src/package.dart index 1d8dc4279..e29088997 100644 --- a/lib/src/package.dart +++ b/lib/src/package.dart @@ -513,7 +513,10 @@ Package `$override` at `${overriddenWorkspacePackage.presentationDir}` is overri // By adding this to visited we will never go above the workspaceRoot.dir. p.canonicalize(root.dir), }; - for (final package in root.transitiveWorkspace.skip(1)) { + for (final package in root.transitiveWorkspace + // We don't want to look at the roots parents. The first package is always + // the root, so skip that. + .skip(1)) { // Run through all parent directories until we meet another workspace // package. for (final dir in parentDirs(package.dir).skip(1)) {