Unverified Commit b5e69f2e authored by xster's avatar xster Committed by GitHub

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

parent 88b77a7d
...@@ -332,6 +332,9 @@ class ArchiveCreator { ...@@ -332,6 +332,9 @@ class ArchiveCreator {
final String createName = path.join(tempDir.path, 'create_$template'); final String createName = path.join(tempDir.path, 'create_$template');
await _runFlutter( await _runFlutter(
<String>['create', '--template=$template', createName], <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,
); );
} }
......
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