Skip to content

Commit a8178ff

Browse files
authored
tools: clean repo before build (#307)
The V8 update script clones V8 and its deps, and patches V8's gitignore file. Clean the repository of all ignored files so the build fails if we forget to update the ignore rules.
1 parent 723513e commit a8178ff

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tools/update-canary.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ git-node v8 major --branch=lkgr --base-dir="$GITHUB_WORKSPACE"
2020
# Canary-base is the last good version of canary, and is manually updated with any V8 patches or backports.
2121
git cherry-pick `git log upstream/canary-base -1 --format=format:%H --grep "src: update NODE_MODULE_VERSION"`...upstream/canary-base
2222

23+
# Clean the repository so we're sure the build doesn't accidentally depend on gitignored files
24+
git clean -fdx
25+
2326
# Verify that Node.js can be compiled and executed
2427
python3 ./configure
2528
make -j $(getconf _NPROCESSORS_ONLN) V=

0 commit comments

Comments
 (0)