Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Next Next commit
format
  • Loading branch information
zijiehe-google-com committed Mar 6, 2024
commit 1e6f3f83086789f4c7017b32ed6fa305d2b69d68
3 changes: 3 additions & 0 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,9 @@ hooks = [
'pattern': '.',
'condition': 'run_fuchsia_emu',
'action': [
'env',
'DOWNLOAD_FUCHSIA_SDK={download_fuchsia_sdk}',
'FUCHSIA_SDK_PATH={fuchsia_sdk_path}',
'python3',
'src/flutter/tools/fuchsia/with_envs.py',
'src/flutter/tools/fuchsia/test_scripts/update_product_bundles.py',
Expand Down
7 changes: 7 additions & 0 deletions tools/fuchsia/with_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ def Main():
assert platform.system() == 'Linux', 'Unsupported OS ' + platform.system()
os.environ['FUCHSIA_SDK_ROOT'] = os.path.join(os.environ['SRC_ROOT'], 'fuchsia/sdk/linux/')

if os.getenv('DOWNLOAD_FUCHSIA_SDK') == 'True':
sdk_path = os.environ['FUCHSIA_SDK_PATH']
assert sdk_path.endswith('/linux-amd64/core.tar.gz')
assert not sdk_path.startswith('/')
os.environ['FUCHSIA_SDK_OVERRIDE'
] = 'gs://fuchsia-artifacts/' + sdk_path[:-len('/linux-amd64/core.tar.gz')]

with subprocess.Popen(sys.argv[1:]) as proc:
try:
proc.wait()
Expand Down