gclient sync only run pub get in workspace root folders (#169134)

`pub get` will resolve the entire workspace, so there is no reason to
run it for each package.

Co-authored-by: Matan Lurey <matanlurey@users.noreply.github.com>
This commit is contained in:
Sigurd Meldgaard 2025-06-03 09:15:40 +02:00 committed by GitHub
parent 1bb1b1baf0
commit 071069046b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,9 +165,9 @@ def main():
pub_count = 0
for package in ALL_PACKAGES:
if fetch_package(pubcmd, package) != 0:
return 1
if not package_uses_workspace_resolution(package):
if fetch_package(pubcmd, package) != 0:
return 1
pub_count = pub_count + check_package_config(package)
if pub_count > 0: