diff --git a/lib/update-v8/majorUpdate.js b/lib/update-v8/majorUpdate.js index 960b330d..07d8cb36 100644 --- a/lib/update-v8/majorUpdate.js +++ b/lib/update-v8/majorUpdate.js @@ -26,6 +26,7 @@ module.exports = function() { removeDepsV8(), cloneLocalV8(), removeDepsV8Git(), + addDepsV8(), updateV8Deps(), applyNodeChanges() ]); @@ -96,6 +97,17 @@ function removeDepsV8Git() { }; } +function addDepsV8() { + return { + title: 'Track all files in deps/v8', + // Add all V8 files with --force before updating DEPS. We have to do this + // because some files are checked in by V8 despite .gitignore rules. + task: (ctx) => execa('git', ['add', '--force', 'deps/v8'], { + cwd: ctx.nodeDir + }) + }; +} + function updateV8Deps() { return { title: 'Update V8 DEPS',