Skip to content

Commit f23ff61

Browse files
authored
fix(update-v8): force-add all files after cloning V8 (#549)
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.
1 parent 6e0a367 commit f23ff61

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/update-v8/majorUpdate.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = function() {
2626
removeDepsV8(),
2727
cloneLocalV8(),
2828
removeDepsV8Git(),
29+
addDepsV8(),
2930
updateV8Deps(),
3031
applyNodeChanges()
3132
]);
@@ -96,6 +97,17 @@ function removeDepsV8Git() {
9697
};
9798
}
9899

100+
function addDepsV8() {
101+
return {
102+
title: 'Track all files in deps/v8',
103+
// Add all V8 files with --force before updating DEPS. We have to do this
104+
// because some files are checked in by V8 despite .gitignore rules.
105+
task: (ctx) => execa('git', ['add', '--force', 'deps/v8'], {
106+
cwd: ctx.nodeDir
107+
})
108+
};
109+
}
110+
99111
function updateV8Deps() {
100112
return {
101113
title: 'Update V8 DEPS',

0 commit comments

Comments
 (0)