0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-11-28 16:21:04 -05:00
denoland-rusty-v8/tools/update_deps.py
denobot 3d29396d72
Rolling to V8 12.9.202.1 (#1579)
* Rolling to V8 12.9.202.1

* initial changes for 12.9

* CallbackScope for fast fns

* disable broken thing by default

* use windows 2022 runner

---------

Co-authored-by: snek <the@snek.dev>
2024-08-20 07:48:10 -07:00

35 lines
816 B
Python

Str = str
def Var(name):
return vars[name]
with open('./v8/DEPS') as f:
exec(f.read())
import subprocess
def process(name, dep):
if name == 'build' or name == 'third_party/icu':
# We have our own fork of this
return
url = dep if isinstance(dep, str) else dep['url']
rev = url.split('@')[1]
print(name, rev)
subprocess.run(['git', 'fetch', 'origin'], cwd=name)
subprocess.run(['git', 'checkout', rev], cwd=name)
failed = False
with open('.gitmodules') as f:
for line in f.readlines():
if line.startswith('['):
name = line.split(" ")[1][1:-3]
if name in deps:
try:
process(name, deps[name])
except:
failed = True
if failed:
import sys
sys.exit(1)