Skip to content

Commit 0710690

Browse files
sigurdmmatanlurey
andauthored
gclient sync only run pub get in workspace root folders (flutter#169134)
`pub get` will resolve the entire workspace, so there is no reason to run it for each package. Co-authored-by: Matan Lurey <[email protected]>
1 parent 1bb1b1b commit 0710690

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/src/flutter/tools/pub_get_offline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ def main():
165165

166166
pub_count = 0
167167
for package in ALL_PACKAGES:
168-
if fetch_package(pubcmd, package) != 0:
169-
return 1
170168
if not package_uses_workspace_resolution(package):
169+
if fetch_package(pubcmd, package) != 0:
170+
return 1
171171
pub_count = pub_count + check_package_config(package)
172172

173173
if pub_count > 0:

0 commit comments

Comments
 (0)