Do not upload all pub packages into the zip bundle (#61488)
Remove git dependencies from pub-cache #61487
This commit is contained in:
parent
51fcf8fa7a
commit
626886e94a
@ -370,6 +370,12 @@ class ArchiveCreator {
|
||||
await _runGit(<String>['clean', '-f', '-X', '**/.packages']);
|
||||
/// Remove package_config files and any contents in .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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user