Fix a crash (#7597) when the flutter sdk moves after getting packages (#7601)

* Add a check in case the flutter directory in .packages no longer exists. Clean up and prompt user

* Update documentation to use flutter packages get for end-users instead of flutter update-packages.

* Merge missing sdk error with the multiple sdk error. They're really the same thing.

* Use flutterPath in both checks.

* Change file_system’s copy folder to copy director which takes into account the file system

* Test support files

* Add test and split into 2 messages again.

* Move tests to run in memory file system's copy. Tested with dev/bots/test.sh
This commit is contained in:
xster
2017-01-26 15:43:28 -08:00
committed by GitHub
parent bc04c53231
commit 682c7992e5
6 changed files with 64 additions and 8 deletions

View File

@@ -0,0 +1,2 @@
flutter:file:///a/wild/non-existent/directory/has/appeared
sdk-move-test:lib/

View File

@@ -0,0 +1,5 @@
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// No content

View File

@@ -0,0 +1,5 @@
name: sdk-move-test
dependencies:
flutter:
sdk: flutter