-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[vcpkg] powershell-core is required by vcpkg_copy_tool_dependencies on non-Windows, but doesn't make powershell-core available #14358
Comments
Can confirm I am seeing this on CentOS 7 as well. |
* Fix incorrect determination of PowerShell not found because Bill doesn't know enough CMake :( Resolves #14283
This issue was introduced by: b7056e9 |
It's looking for powershell because the It looks like that test has been broken "forever"; Even though that was wrong, because vcpkg_copy_tools_dependencies looks for ".exe", it never tried to invoke that powershell script on most *nix systems, It passes in our CI because we have powershell core installed in our test VMs, so find_program finds it, and everything is OK. Possible options:
|
This is clearly looking for *.exe and *.dll, so it has Windows assumptions. Moreover, it fails on non-Windows platforms where vcpkg doesn't always make powershell-core available. Resolves microsoft#14358
I have submitted the "do nothing on non-Windows" change #14366 |
Thank you @BillyONeal I'll check the master again maybe today. |
Also if a package needs powershell it should mention it in its metadata/build dependencies and vcpkg should acquire powershell I think. |
On Windows it's an assumed dependency: https://github.com/microsoft/vcpkg/blob/master/toolsrc/src/vcpkg/build.cpp#L340 |
Host Environment
To Reproduce
Steps to reproduce the behavior:
./vcpkg --triplet x64-linux install cairo
Failure logs
Additional context
I don't know why it is looking for PowerShell.
The text was updated successfully, but these errors were encountered: