-
Notifications
You must be signed in to change notification settings - Fork 28.9k
check if libimobiledevice executables exist #43767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check if libimobiledevice executables exist #43767
Conversation
MockCache mockCache; | ||
|
||
setUp(() { | ||
mockCache = MockCache(); | ||
}); | ||
|
||
testUsingContext('verifies executables for libimobiledeivce in isUpToDateInner', () async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
libimobiledevice
spelling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, other than spelling nit for test name
@@ -1102,18 +1102,42 @@ class IosUsbArtifacts extends CachedArtifact { | |||
'ios-deploy', | |||
]; | |||
|
|||
static const Map<String, List<String>> _kExecutables = <String, List<String>>{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, maybe a comment here too, to give some context
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Description
We've been noticing several ArgumentErrors in crash logs from missing libimobiledevice artifacts. In place of a full solution (checksums, cache verification), we can add a check that the specific artifacts exist on disk to the cache update logic.