-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
vcvarsall.bat
from VS 2019 has recently stopped setting VCToolsRedistDir
#10819
Comments
I found a more recent build job that ran on So this regression(?) was introduced with |
Recently, the "vcvarsall.bat" batch script from VS 2019 has stopped defining the VCToolsRedistDir environment variable, for reasons unknown so far [1]. We rely on that variable in CI to copy MSVC runtime DLLs to our Windows packages, so this adds a workaround for when that variable is not set. [1] actions/runner-images#10819
Hi @guihkx Thank you for bringing this issue to our attention. We are looking into this issue and will update you on this issue after investigating. |
I believe this may be the problem in indygreg/python-build-standalone#376 as well, but haven't been able to produce a fix yet to confirm. |
Hi @guihkx, Could you please try the latest version |
Still unset: https://github.com/guihkx/notes/actions/runs/11532828745/job/32105052408 |
We are using Windows Server 2022 based container images with Visual Studio 2019 Build Tools and are also missing the VCToolsRedistDir environment variable. Last successful container image was built 3 weeks ago. As the system is in it's startup phase i don't have any exact version numbers. But it appears to me that this is a general Visual Studio 2019 issue and nothing specific to Github Actions or (as in our case) Gitlab Runners as well as regular container images. Do you know the best way to raise an issue to Visual Studio developers about this? |
Hi @dlux95, You can raise an issue here https://github.com/microsoft/vscode , Thanks. |
Isn’t that only for Visual Studio Code related issues? I don’t think that’s the right place. |
Hi @dlux95, This is the URL which may be referred to for reporting the problem in a general https://learn.microsoft.com/en-gb/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2022. |
This has been fixed in either Test run on |
Description
The
vcvarsall.bat
script from Visual Studio 2019 has recently stopped setting theVCToolsRedistDir
environment variable.I have a build step that uses this action, which essentially invokes
vcvarsall.bat
from Visual Studio 2019, and "forwards" every environment variable set by that script to subsequent build jobs.3 weeks ago, the
vcvarsall.bat
script would still setVCToolsRedistDir
, but now it doesn't.It's not clear to me why, but it felt appropriate to report it here.
Platforms affected
Runner images affected
Image version and build link
20241015.1.0
: https://github.com/nuttyartist/notes/actions/runs/11418927860/job/31772946804#step:4:28Is it regression?
Yes.
20240922.1.0
: https://github.com/nuttyartist/notes/actions/runs/11128027843/job/30922790999#step:4:29Expected behavior
The
VCToolsRedistDir
environment to be set after runningvcvarsall.bat
.Actual behavior
VCToolsRedistDir
is not set anymore.Repro steps
The text was updated successfully, but these errors were encountered: