From 700a1d50fd5fc1ba11b0ce793aa24d7416de0903 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Wed, 15 Jan 2025 10:25:48 -0800 Subject: [PATCH] update update to fully update --- build/update.js | 16 +++++++++++++--- third_party/dawn | 2 +- third_party/depot_tools | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/build/update.js b/build/update.js index 5d26754..db58820 100644 --- a/build/update.js +++ b/build/update.js @@ -1,15 +1,25 @@ +import path from 'node:path'; + import {execute} from './execute.js'; - +import {prependPathIfItExists} from './utils.js'; + const cwd = process.cwd(); +const depotToolsPath = path.join(cwd, 'third_party', 'depot_tools'); +prependPathIfItExists(depotToolsPath); async function main() { try { await execute('git', ['submodule', 'update', '--init']); - process.chdir('third_party/dawn'); + + process.chdir('third_party/depot_tools'); await execute('git', ['pull', 'origin', 'main']); process.chdir(cwd); - process.chdir('third_party/depot_tools'); + + process.chdir('third_party/dawn'); await execute('git', ['pull', 'origin', 'main']); + await execute('gclient', ['sync', '-D']); + process.chdir(cwd); + } catch (e) { console.error(e); console.error(e.stack); diff --git a/third_party/dawn b/third_party/dawn index 8dfcfd1..f88dd4d 160000 --- a/third_party/dawn +++ b/third_party/dawn @@ -1 +1 @@ -Subproject commit 8dfcfd16ab65d1cab205bb189ee09a22f41ca7c6 +Subproject commit f88dd4d15e348e3b0601f8f9ac1fc06c312ed468 diff --git a/third_party/depot_tools b/third_party/depot_tools index 1dd73cd..232ffd8 160000 --- a/third_party/depot_tools +++ b/third_party/depot_tools @@ -1 +1 @@ -Subproject commit 1dd73cd467bb8526d6fdebfadf9a379a9e50bf34 +Subproject commit 232ffd8df30bbf22808a955737aeb8d46b47488f