Repository navigation
Conversation
VCPKG_APPLOCAL_DEPS to avoid flaky CI failures
vszakats
added a commit
to curl/curl
that referenced
this pull request
Jun 26, 2026
Add the necessary directory to `PATH` instead. To disable a vcpkg feature (auto-copying DLL dependencies next to the build targets) that was causing CI flakiness in the libssh2 repository. In curl it currently cannot cause flakiness because targets (with DLL dependencies) reside in separate directories. AFAIU this vcpkg feature has been present and enabled by default for a long time, but only a recent update made it visible in the log and flaky at the same time, due to switching implementation. This patch removes log noise and potential issues, improves efficiency, and saves disk space: 74MB -> 71 in UWP, and 69MB -> 65 in the arm64 job. Time saving is negligible with current jobs. Refs: libssh2/libssh2#2114 libssh2/libssh2@30a0484 microsoft/vcpkg#52315 https://learn.microsoft.com/vcpkg/reference/installation-tree-layout Closes #22189
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
During last week MSVC GHA jobs started failing on occasion. Log clues.
are "deploying dependencies", "The process cannot access the file
because it is being used by another process.", and "C:\vcpkg\vcpkg.exe
z-applocal". Turns out the latter command has been introduced recently.
Then two weeks ago vcpkg's cmake script switched to it by default for
the
VCPKG_APPLOCAL_DEPSoption. This option is enabled by default.It's vcpkg's implementation of the DLL copying feature, which I just
dropped from libssh2 (suspecting it as a root cause for these failures).
Fix by disabling this option, since libssh2 CI jobs don't need it.
Examples, with shared libssh2:
combined with WINCNG:
Before: https://github.com/libssh2/libssh2/actions/runs/27901568257/job/82562736781 (229 steps)
After: https://github.com/libssh2/libssh2/actions/runs/27924142060/job/82623203836 (179 steps)
combined with OpenSSL:
Before: https://github.com/libssh2/libssh2/actions/runs/27902733625/job/82565870012 (229 steps)
After: https://github.com/libssh2/libssh2/actions/runs/27924142060/job/82623203795 (179 steps)
Fixing:
Ref: https://github.com/libssh2/libssh2/actions/runs/27922679181/job/82619051657?pr=2113
Refs:
1e5e292
https://devblogs.microsoft.com/cppblog/whats-new-in-vcpkg-apr-2026/
https://github.com/microsoft/vcpkg/blame/a0b1c8d3a477c1cb4813d8e127a56961707ca42b/scripts/buildsystems/vcpkg.cmake#L48-L50
https://github.com/microsoft/vcpkg/blob/a0b1c8d3a477c1cb4813d8e127a56961707ca42b/scripts/buildsystems/vcpkg.cmake#L622
microsoft/vcpkg@b8ab03c
microsoft/vcpkg#52315
Bug: #2101 (comment)
Follow-up to 3b730f2 #2101