-
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 build applied to an already-installed port always prints: "Value was null" #13933
Labels
category:vcpkg-bug
The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)
requires:tool-release
An issue that has been fixed in the microsoft/vcpkg-tool repo and is waiting for a release thereof
Comments
We are trying to update cmake to 3.18 in PR #12612 now. |
I can confirm this issue is still exists. |
for (auto& install_action : action_plan.already_installed)
{
if (install_action.spec == full_spec.package_spec)
{
action = &install_action;
}
}
|
Does not repro for me :( |
|
Oh I missed the 'already installed' condition. |
BillyONeal
added a commit
to BillyONeal/vcpkg-tool
that referenced
this issue
Apr 8, 2022
Resolves microsoft/vcpkg#13933 Rather than attempting to deal with the condition that the plan created thinks the thing we want to build is already installed, this version just "removes" the thing we want to build from the in-memory status database before creating the plan.
Careful @JackBoosY :D |
Fixed by #24526 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
category:vcpkg-bug
The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)
requires:tool-release
An issue that has been fixed in the microsoft/vcpkg-tool repo and is waiting for a release thereof
Describe the bug
When executing "vcpkg build" for any installed package, it immediately returns with "Value was null".
No error or context is shown.
Environment
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A new build starts.
Failure logs
.\vcpkg.exe build jsoncpp --debug
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'manifests' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Using vcpkg-root: D:\mosquitto_build_1.6.12\vcpkg
[DEBUG] Using installed-root: D:\mosquitto_build_1.6.12\vcpkg\installed
[DEBUG] Using buildtrees-root: D:\mosquitto_build_1.6.12\vcpkg\buildtrees
[DEBUG] Using downloads-root: D:\mosquitto_build_1.6.12\vcpkg\downloads
[DEBUG] Using packages-root: D:\mosquitto_build_1.6.12\vcpkg\packages
[DEBUG] Using scripts-root: D:\mosquitto_build_1.6.12\vcpkg\scripts
[DEBUG] Default binary cache path is: C:\Users\KMAT\AppData\Local\vcpkg\archives
[DEBUG] CreateProcessW("C:\Program Files\CMake\bin\cmake.exe" --version)
[DEBUG] cmd_execute_and_stream_data() returned 0 after 33850 us
[DEBUG] CreateProcessW("C:\Program Files\CMake\bin\cmake.exe" -DVCPKG_ROOT_DIR=D:/mosquitto_build_1.6.12/vcpkg -DPACKAGES_DIR=D:/mosquitto_build_1.6.12/vcpkg/packages -DBUILDTREES_DIR=D:/mosquitto_build_1.6.12/vcpkg/buildtrees -D_VCPKG_INSTALLED_DIR=D:/mosquitto_build_1.6.12/vcpkg/installed -DDOWNLOADS=D:/mosquitto_build_1.6.12/vcpkg/downloads -DVCPKG_MANIFEST_INSTALL=OFF -P "D:\mosquitto_build_1.6.12\vcpkg\buildtrees\0.vcpkg_dep_info.cmake")
[DEBUG] cmd_execute_and_stream_data() returned 0 after 24453 us
Value was null
[DEBUG] D:\mosquitto_build_1.6.12\vcpkg\toolsrc\src\vcpkg\build.cpp(1065)
[DEBUG] Exiting after 98725 us (87780 us)
The text was updated successfully, but these errors were encountered: