Unverified Commit fc3471fd authored by Jesús S Guerrero's avatar Jesús S Guerrero Committed by GitHub

check for pubspec instead of lib/ (#107968)

parent 8d33ce13
...@@ -98,7 +98,7 @@ class PubDependencies extends ArtifactSet { ...@@ -98,7 +98,7 @@ class PubDependencies extends ArtifactSet {
return false; return false;
} }
for (final Package package in packageConfig.packages) { for (final Package package in packageConfig.packages) {
if (!fileSystem.directory(package.packageUriRoot).existsSync()) { if (!fileSystem.directory(package.root).childFile('pubspec.yaml').existsSync()) {
return false; return false;
} }
} }
......
...@@ -936,7 +936,7 @@ void main() { ...@@ -936,7 +936,7 @@ void main() {
expect(await pubDependencies.isUpToDate(fileSystem), false); // dependencies are missing. expect(await pubDependencies.isUpToDate(fileSystem), false); // dependencies are missing.
fileSystem.file('.pub-cache/hosted/pub.dartlang.org/example-7.0.0/lib/foo.dart') fileSystem.file('.pub-cache/hosted/pub.dartlang.org/example-7.0.0/pubspec.yaml')
.createSync(recursive: true); .createSync(recursive: true);
expect(await pubDependencies.isUpToDate(fileSystem), true); expect(await pubDependencies.isUpToDate(fileSystem), true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment