-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
tools: don't build node for doc build #9660
Conversation
Building node binary is not necessary for doc builds. Refer: nodejs#9436 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @nodejs/build can you check if make doc-only
is currently in use by the CI?
no comment on implementation, but +1 for the feature |
But it is required to run I'd be OK if you can replace the use of |
Ya, I have already started working on it. I'll update the PR soon. |
I tried so many things, but the last commit is the best I could come up with. I could use some help here @nodejs/build |
@@ -315,9 +314,14 @@ out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets/ | |||
out/doc/%: doc/% | |||
cp -r $< $@ | |||
|
|||
GET_NODE := $(or $(shell [ -x ./node ] && echo ./node), $(shell command -v node)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only used to find one for the purpose of printing an error and not actually using it. Note that $(NODE)
is still invoked for gen-json and gen-html which could be different to ./node
or command -v node
.
It also may be prudent to use which
in here rather than command
(see the XZ
check).
So, perhaps this check should be used to determine which node
to invoke but it should default to testing for $(NODE)
rather than ./node
(since ./node
is the default but it can be overridden at runtime, e.g. NODE=blergh make ...
. The final command
/which
is a nice fallback that should get us by but that needs to carry on down to the execution of gen-json and gen-html.
Status updates on this one? |
I think this has been resolved by introducing the |
Checklist
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
build tools
Description of change
Building node binary is not necessary for doc builds.
Refer: #9436 (comment)
cc @silverwind