From 138f15432a69ba7081c895cd109abf0175c9926b Mon Sep 17 00:00:00 2001 From: Josip Sokcevic Date: Tue, 17 Dec 2024 11:01:51 -0800 Subject: [PATCH] [gclient] Never download non-git-sources in Cog R=bryner@google.com Bug: 382202082 Change-Id: Ifa8056e1b2d11f2a8ccede66e56d499ca4030d30 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6101741 Reviewed-by: Brian Ryner Commit-Queue: Brian Ryner Auto-Submit: Josip Sokcevic --- gclient.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/gclient.py b/gclient.py index 72ecf74a8..fb5a9c6c5 100755 --- a/gclient.py +++ b/gclient.py @@ -3993,17 +3993,7 @@ def CMDsync(parser, args): if options.verbose: client.PrintLocationAndContents() - # TODO(b/349643421): remove this check when non-git-sources is fully enabled. - def gn_exists(): - cwd = os.getcwd() - split_cwd = cwd.split( - '/' - ) # ['/', 'google', 'cog', 'cloud', , , ...] - gn_path = os.path.join('/google/cog/cloud', *split_cwd[4:6], - 'src/buildtools/linux64/gn') - return os.path.exists(gn_path) - - if gclient_utils.IsEnvCog() and gn_exists(): + if gclient_utils.IsEnvCog(): ret = client.RunOnDeps('runhooks', args) else: ret = client.RunOnDeps('update', args)