Skip to content

Commit 9ae2871

Browse files
committed
canonicalize live paths
1 parent 9087f4e commit 9ae2871

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/src/command/cache_gc.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ class CacheGcCommand extends PubCommand {
6262
continue;
6363
}
6464
for (final package in packageConfig.packages) {
65-
final rootUri = package.resolvedRootDir(packageConfigPath);
65+
final rootUri = p.canonicalize(
66+
package.resolvedRootDir(packageConfigPath),
67+
);
6668
if (p.isWithin(cache.rootDir, rootUri)) {
6769
paths.add(rootUri);
6870
}

0 commit comments

Comments
 (0)