mirror of
https://github.com/flutter/packages.git
synced 2025-06-15 09:38:52 +08:00
Enable prefer_relative_imports
(#6501)
This commit is contained in:
@ -158,10 +158,12 @@ class MakeDepsPathBasedCommand extends PackageCommand {
|
||||
...pubspec.dependencies.keys,
|
||||
...pubspec.devDependencies.keys,
|
||||
];
|
||||
final Iterable<String> packagesToOverride = combinedDependencies
|
||||
final List<String> packagesToOverride = combinedDependencies
|
||||
.where(
|
||||
(String packageName) => localDependencies.containsKey(packageName))
|
||||
.toList();
|
||||
// Sort the combined list to avoid sort_pub_dependencies lint violations.
|
||||
packagesToOverride.sort();
|
||||
if (packagesToOverride.isNotEmpty) {
|
||||
final String commonBasePath = packagesDir.path;
|
||||
// Find the relative path to the common base.
|
||||
|
Reference in New Issue
Block a user