Skip to content

Commit

Permalink
update update to fully update
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jan 15, 2025
1 parent d3d932a commit 700a1d5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
16 changes: 13 additions & 3 deletions build/update.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
2 changes: 1 addition & 1 deletion third_party/dawn
Submodule dawn updated from 8dfcfd to f88dd4
2 changes: 1 addition & 1 deletion third_party/depot_tools
Submodule depot_tools updated from 1dd73c to 232ffd

0 comments on commit 700a1d5

Please sign in to comment.