diff --git a/lib/src/commands/packages/commands/check/commands/licenses.dart b/lib/src/commands/packages/commands/check/commands/licenses.dart index 50b6d0a15..f4bc1a6f8 100644 --- a/lib/src/commands/packages/commands/check/commands/licenses.dart +++ b/lib/src/commands/packages/commands/check/commands/licenses.dart @@ -243,7 +243,7 @@ class PackagesCheckLicensesCommand extends Command { continue; } - final packagePath = path.normalize(cachePackageEntry.root.path); + final packagePath = path.normalize(cachePackageEntry.root.toFilePath()); final packageDirectory = Directory(packagePath); if (!packageDirectory.existsSync()) { final errorMessage =