这是indexloc提供的服务,不要输入任何密码
Skip to content

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

Merged
merged 3 commits into from
Oct 30, 2019

Conversation

jonahwilliams
Copy link
Contributor

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.

@fluttergithubbot fluttergithubbot added the tool Affects the "flutter" command-line tool. See also t: labels. label Oct 29, 2019
MockCache mockCache;

setUp(() {
mockCache = MockCache();
});

testUsingContext('verifies executables for libimobiledeivce in isUpToDateInner', () async {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libimobiledevice spelling

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Contributor

@christopherfujino christopherfujino left a 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>>{
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@jonahwilliams jonahwilliams merged commit 50da3bd into flutter:master Oct 30, 2019
@jonahwilliams jonahwilliams deleted the check_executables_exist branch October 30, 2019 04:35
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Nov 26, 2019
@christopherfujino christopherfujino mentioned this pull request Mar 12, 2020
13 tasks
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants