-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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_FORCE_SYSTEM_BINARIES cause vcpkg_apply_patches error on Windows #16216
Comments
|
@StarGate-One I already installed git in system, see the last part of the issuse description, where.exe can find git. Vcpkg seems to change PATH to keep it "clean". |
Hmm, I do know vcpkg creates a clean environment, but I would think it would bring in some of the environment variables when forcing the system binaries. |
@huangqinjin, I can't repro this isssue locally, I installed git 2.30.0, and it appied the patch correctly. what's revision do you use?
|
Can you please check the Windows region setting about |
@PhoebeHui |
@JackBoosY I don't set Utf8, the locale of my PC is Chinese. |
Maybe same with #15456. |
Can't reproduce this issue on Windows 10 Chinese. |
@huangqinjin, what's git revision in your local machine? the ' C:/Program Files/Git/cmd/' in the system environment PATH in my local mamachine, and the git tool path should be aquired before applying patch, also before getting the clean PATH. I suggest to reinstall git and try again. |
I use vcpkg f79c681. This is neither locale issue nor git installation issue. Without Another way to repro the issue. |
@huangqinjin, the problem here is vcpkg didn't get the git tool path from system successfully, without settingVCPKG_FORCE_SYSTEM_BINARIES=1, it will use the one that downloaded by vcpkg, so you can install sqlite3 successfully. |
@huangqinjin Can you use powershell instead of cmd? |
It should be a vcpkg bug, after setting ' $env:VCPKG_FORCE_SYSTEM_BINARIES=1', it failed before the 'apply patch steps' with latest source. PS E:\vcpkg\clean\vcpkg> ./vcpkg install sqlite3:x86-windows-static --debug [DEBUG] C:\A\1\60\s\src\vcpkg\cmakevars.cpp(178) |
I'm having this problem as well.. 'did anybody make any headway? I've got git in the path too, but it can't find it after forcing system binaries.
|
I had a similar type of issue with
Managed to get This got
|
Currently, there are two cases about this issue:
For case 1, the steps to reproduce: Precondition: CMake has been installed to my local manually, but the path was not added to environment variables.
For case 2, the steps to reproduce: Precondition: CMake has been installed to my local manually(cmake >=3.21), the path
In both case 1 and case 2, |
Two issues here:
|
Paraphrasing @ras0219 , the right fix is to:
|
Fixed in microsoft/vcpkg-tool#540 |
problem still there. maybe merge is not released yet? |
@yekanchi Yeah, waiting for the next release. |
* Update vcpkg-tool to 2022-06-15. See https://github.com/microsoft/vcpkg-tool/releases/tag/2022-06-15 * Add `=pass` entries from microsoft/vcpkg-tool#579 * Cherry pick XUnit output from #23477 which hooks up microsoft/vcpkg-tool#585 (Thanks again @dg0yt !) * Update release process document now that we can do the full tree rebuild to test the tool release before signing. Thank you: @autoantwort @christophe-calmejane @JackBoosY @benmcmorran @hmoffatt @klalumiere @Thomas1664 @Neumann-A @AenBleidd for your contributions! Fixes #22686 . Fixes #21800 . Fixes #16216 . Fixes #15836 . Full tree rebuild testing this update is: https://dev.azure.com/vcpkg/public/_build/results?buildId=73664&view=results
Environment
To Reproduce
Steps to reproduce the behavior:
Failure logs
Additional context
Add some logs to vcpkg_apply_patches
got
PATH doesn't contain git installation path which should be
The text was updated successfully, but these errors were encountered: