Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
fc3471fd
Unverified
Commit
fc3471fd
authored
Jul 21, 2022
by
Jesús S Guerrero
Committed by
GitHub
Jul 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check for pubspec instead of lib/ (#107968)
parent
8d33ce13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
flutter_cache.dart
packages/flutter_tools/lib/src/flutter_cache.dart
+1
-1
cache_test.dart
packages/flutter_tools/test/general.shard/cache_test.dart
+1
-1
No files found.
packages/flutter_tools/lib/src/flutter_cache.dart
View file @
fc3471fd
...
@@ -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
;
}
}
}
}
...
...
packages/flutter_tools/test/general.shard/cache_test.dart
View file @
fc3471fd
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment