-
Notifications
You must be signed in to change notification settings - Fork 30k
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
build,win: goto lint only after defining node_exe #29616
build,win: goto lint only after defining node_exe #29616
Conversation
When running `vcbuild lint` on a new prompt where vcbuild was not run before, `%node_exe%` was not defined and `eslint.js`, `lint-js.js` and `lint-md.js` would be run directly using the program defined in Windows (usually the Windows Scripting Host or Notepad). This moves the goto statement to after `%node_exe%` is defined. Fixes: nodejs#29602
@bzmlxos did you compile Node by running just Running the C++ requires having either WSL installed or a copy of GNU Make in the path. |
Using GNU Make is a workaround we have in place (ref #28102), a better solution would use Python to run the same code on all platforms.
@bzmlxos the error you see is because the Unix tools that Git installs are not on the PATH. You need to either:
|
@nodejs/platform-windows @nodejs/build-files this is ready for review, PTAL. |
Landed in 35bfe0e |
When running `vcbuild lint` on a new prompt where vcbuild was not run before, `%node_exe%` was not defined and `eslint.js`, `lint-js.js` and `lint-md.js` would be run directly using the program defined in Windows (usually the Windows Scripting Host or Notepad). This moves the goto statement to after `%node_exe%` is defined. Fixes: nodejs#29602 PR-URL: nodejs#29616 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
When running `vcbuild lint` on a new prompt where vcbuild was not run before, `%node_exe%` was not defined and `eslint.js`, `lint-js.js` and `lint-md.js` would be run directly using the program defined in Windows (usually the Windows Scripting Host or Notepad). This moves the goto statement to after `%node_exe%` is defined. Fixes: #29602 PR-URL: #29616 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
When running
vcbuild lint
on a new command prompt wherevcbuild
was not run before,%node_exe%
was not defined andeslint.js
,lint-js.js
andlint-md.js
would be run directly using the program defined in Windows (usually the Windows Scripting Host or Notepad).This moves the goto statement to after
%node_exe%
is defined.Fixes: #29602
cc @nodejs/platform-windows
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes