-
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: bump vswhere helper to 2.0.0 #14557
Conversation
97abb71
to
104cc4e
Compare
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.
Switching between release and preview requires closing and re-opening cmd. Is that intended?
So that is a tricky one, since we short-circuit the call to |
@seishun what I could do is treat But I'm not sure 🤔 ... |
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.
I can't really test this locally as I am stuck to VS 2015 which does not have vswhere
as far as I know, but the changes themselves LGTM. Hoping for some feedback from @nodejs/platform-windows who use VS 2017.
if not exist "%InstallerPath%" set "InstallerPath=%ProgramFiles%\Microsoft Visual Studio\Installer" | ||
if not exist "%InstallerPath%" goto :no-vswhere | ||
:: Manipulate %Path% for easier " handeling | ||
set Path=%Path%;%InstallerPath% |
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.
Even though I don't think quotes are strictly necessary here, I would prefer consistency with line 8.
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.
I usually don't like adding stuff "just to be safe", but since I don't know exactly why or how this might break (but it probably will for someone), I added them.
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.
Actually I can't remember why I use the %Path%
trick... But I do remember that "%InstallerPath%"\vswhere.exe
doesn't work is some cases
Really? It takes less than a second for me. |
vcbuild.bat
Outdated
@@ -1,4 +1,4 @@ | |||
@echo off | |||
:: @echo off |
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.
Is this on purpose or leftover from debugging?
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.
🤦♂️
Removed.
:no-vswhere | ||
endlocal | ||
echo could not find "vswhere" | ||
exit /B 1 |
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.
Missing new line
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.
added
8020eb0
to
7b51cb1
Compare
with VS2017? it used to be 10s, but it keeps getting worse (maybe because I have 3 installation side by side) |
Updated to |
Ping @bzoz |
a101565
to
75fe971
Compare
LGTM if the CI is green. https://ci.nodejs.org/job/node-test-pull-request/9910/ |
Build failures look unrelated at https://ci.nodejs.org/job/node-test-commit-osx/12086//console (cc @nodejs/build ). New CI: https://ci.nodejs.org/job/node-test-pull-request/9911/console |
I guess the only thing that really matters here is if node-compile-windows is green. It is, tests also look OK, so LGTM. |
* enable explicit detection of prerelease VS versions with `set VSWHERE_WITH_PRERELEASE=1` PR-URL: nodejs#14557 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
75fe971
to
98d8db3
Compare
* enable explicit detection of prerelease VS versions with `set VSWHERE_WITH_PRERELEASE=1` PR-URL: nodejs/node#14557 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
* enable explicit detection of prerelease VS versions with `set VSWHERE_WITH_PRERELEASE=1` PR-URL: #14557 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
* enable explicit detection of prerelease VS versions with `set VSWHERE_WITH_PRERELEASE=1` PR-URL: #14557 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Should this be backported to |
ping |
ping @refack |
No need as there's no VS2017 support on v6.x |
set VSWHERE_WITH_PRERELASE=1
/cc @nodejs/platform-windows @nodejs/build
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
tools,build,windows