-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change test/addons/ to ignore empty folders #14843
Comments
@Fishrock123 This is not a Python thing, |
If anyone want to tackle this but hits the |
Working on it. |
Unable to replicate even after switching between branches. |
It only happens when switching branches leaves an empty directory under test/addons or test/addons-napi. Not a big deal though, |
I have been running |
Try switching to a staging branch, say |
I was able to replicate it and while trying to look for empty directories in |
@refack Can you guide me through what needs to be the best fix here? |
This sounds good to me. Line 253 in 58ca8c6
would be a good place to start. P.S. Same idea should be in Lines 400 to 405 in 58ca8c6
P.P.S. both of these have |
[Optional improvement]After looking at both AFAICT this whole section should be refactored out: Lines 234 to 304 in 58ca8c6
Leaving behind only the test/addons/.buildstamp and test/addons/.buildstamp targets
|
#12231 refactors out much of the logic for building addons to .js files. |
I’m looking into this with @MylesBorins |
This fixes the diff --git a/Makefile b/Makefile
index d917056..c5d96eb 100644
--- a/Makefile
+++ b/Makefile
@@ -268,6 +268,8 @@ test/addons/.buildstamp: config.gypi \
# Cannot use $(wildcard test/addons/*/) here, it's evaluated before
# embedded addons have been generated from the documentation.
@for dirname in test/addons/*/; do \
+ if [ ! -f "$$PWD/${$dirname}binding.gyp" ]; then \
+ continue; fi ; \
printf "\nBuilding addon $$PWD/$$dirname\n" ; \
env MAKEFLAGS="-j1" $(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp \
--loglevel=$(LOGLEVEL) rebuild \ but now getting |
nevermind, the |
Fixes: nodejs/node#14843 PR-URL: nodejs/node#16031 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
/addons/
testsWhen changing branches sometimes
git
seems to leave empty folders behind which in the case of thetest/addons/
directory causes at leastgyp
to explode with an error similar to:The text was updated successfully, but these errors were encountered: