Make sure package cache prepare does not end up creating projects inside the Flutter repo (#26389)

This commit is contained in:
xster 2019-01-10 18:04:23 -08:00 committed by GitHub
parent 88b77a7d0f
commit b5e69f2ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -332,6 +332,9 @@ class ArchiveCreator {
final String createName = path.join(tempDir.path, 'create_$template');
await _runFlutter(
<String>['create', '--template=$template', createName],
// Run it outside the cloned Flutter repo to not nest git repos, since
// they'll be git repos themselves too.
workingDirectory: tempDir,
);
}