build: fix clang format/lint (#42715)

* build: fix clang format path

* fix: use gclient sync instead of gclient runhooks

Refs 5659261

* fix: use gclient sync instead of gclient runhooks in GHA

---------

Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
This commit is contained in:
Keeley Hammond 2024-06-28 13:30:07 -07:00 committed by GitHub
parent 398dde9dfb
commit 3ac57e17d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 16 additions and 10 deletions

View file

@ -195,14 +195,20 @@ def get_buildtools_executable(name):
else:
raise Exception(f"Unsupported platform: {sys.platform}")
if name == 'clang-format':
path = os.path.join(buildtools, chromium_platform, 'format', name)
else:
path = os.path.join(buildtools, chromium_platform, name)
path = os.path.join(buildtools, chromium_platform, name)
if sys.platform == 'win32':
path += '.exe'
return path
def get_depot_tools_executable(name):
buildtools = os.path.realpath(
os.path.join(ELECTRON_DIR, '..', 'third_party', 'depot_tools'))
path = os.path.join(buildtools, name)
if sys.platform == 'win32':
path += '.bat'
return path
def get_linux_binaries():
return [
'chrome-sandbox',