Skip to content

Commit 700a1d5

Browse files
committed
update update to fully update
1 parent d3d932a commit 700a1d5

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

build/update.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
1+
import path from 'node:path';
2+
13
import {execute} from './execute.js';
2-
4+
import {prependPathIfItExists} from './utils.js';
5+
36
const cwd = process.cwd();
7+
const depotToolsPath = path.join(cwd, 'third_party', 'depot_tools');
8+
prependPathIfItExists(depotToolsPath);
49

510
async function main() {
611
try {
712
await execute('git', ['submodule', 'update', '--init']);
8-
process.chdir('third_party/dawn');
13+
14+
process.chdir('third_party/depot_tools');
915
await execute('git', ['pull', 'origin', 'main']);
1016
process.chdir(cwd);
11-
process.chdir('third_party/depot_tools');
17+
18+
process.chdir('third_party/dawn');
1219
await execute('git', ['pull', 'origin', 'main']);
20+
await execute('gclient', ['sync', '-D']);
21+
process.chdir(cwd);
22+
1323
} catch (e) {
1424
console.error(e);
1525
console.error(e.stack);

third_party/dawn

Submodule dawn updated from 8dfcfd1 to f88dd4d

third_party/depot_tools

Submodule depot_tools updated from 1dd73cd to 232ffd8

0 commit comments

Comments
 (0)