mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
siso: don't check backend.star if backend_config dir doesn't exist
Bug: 408114984 Change-Id: I354bcd7e3c0f0e6af6496054f5f295c927cfc8f0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6431647 Commit-Queue: Philipp Wollermann <philwo@google.com> Reviewed-by: Philipp Wollermann <philwo@google.com> Auto-Submit: Fumitoshi Ukai <ukai@google.com>
This commit is contained in:
9
siso.py
9
siso.py
@@ -120,9 +120,10 @@ def main(args):
|
||||
for line in f.readlines():
|
||||
k, v = line.rstrip().split('=', 1)
|
||||
env[k] = v
|
||||
if not os.path.exists(
|
||||
os.path.join(base_path, 'build', 'config', 'siso',
|
||||
'backend_config', 'backend.star')):
|
||||
backend_config_dir = os.path.join(base_path, 'build', 'config', 'siso',
|
||||
'backend_config')
|
||||
if os.path.exists(backend_config_dir) and not os.path.exists(
|
||||
os.path.join(backend_config_dir, 'backend.star')):
|
||||
if _is_google_corp_machine():
|
||||
print(
|
||||
'build/config/siso/backend_config/backend.star does not '
|
||||
@@ -130,7 +131,7 @@ def main(args):
|
||||
'backend.star is configured by gclient hook '
|
||||
'build/config/siso/configure_siso.py.\n'
|
||||
'Make sure `rbe_instance` gclient custom vars is correct.\n'
|
||||
'Did you run `glient runhooks` ?',
|
||||
'Did you run `gclient runhooks` ?',
|
||||
file=sys.stderr)
|
||||
else:
|
||||
print(
|
||||
|
||||
Reference in New Issue
Block a user