From 84954a5fda5436a035fb79b242dbe88a5b3de09b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 30 Jun 2021 14:17:40 +0200 Subject: [PATCH] fix(update-v8): force-add all files after cloning 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. --- lib/update-v8/majorUpdate.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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',