Unverified Commit 2eee3f32 authored by Zachary Anderson's avatar Zachary Anderson Committed by GitHub

[flutter_tool] Don't look for Fuchsia artifacts on Windows (#33146)

parent ecc7793c
......@@ -111,6 +111,10 @@ class FuchsiaArtifacts {
/// FUCHSIA_SSH_CONFIG) to find the ssh configuration needed to talk to
/// a device.
factory FuchsiaArtifacts.find() {
if (!platform.isLinux && !platform.isMacOS) {
// Don't try to find the artifacts on platforms that are not supported.
return FuchsiaArtifacts();
}
final String fuchsia = Cache.instance.getArtifactDirectory('fuchsia').path;
final String tools = fs.path.join(fuchsia, 'tools');
final String dartPrebuilts = fs.path.join(tools, 'dart_prebuilts');
......
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