Do not upload all pub packages into the zip bundle (#61488)

Remove git dependencies from pub-cache

#61487
This commit is contained in:
Jonah Williams 2020-07-15 11:56:28 -07:00 committed by GitHub
parent 51fcf8fa7a
commit 626886e94a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -370,6 +370,12 @@ class ArchiveCreator {
await _runGit(<String>['clean', '-f', '-X', '**/.packages']); await _runGit(<String>['clean', '-f', '-X', '**/.packages']);
/// Remove package_config files and any contents in .dart_tool /// Remove package_config files and any contents in .dart_tool
await _runGit(<String>['clean', '-f', '-X', '**/.dart_tool']); await _runGit(<String>['clean', '-f', '-X', '**/.dart_tool']);
/// Remove git subfolder from .pub-cache, this contains the flutter goldens
/// and new flutter_gallery.
final Directory gitCache = Directory(path.join(flutterRoot.absolute.path, '.pub-cache', 'git'));
if (gitCache.existsSync()) {
gitCache.deleteSync(recursive: true);
}
} }
/// Write the archive to the given output file. /// Write the archive to the given output file.