Open LegalizeAdulthood opened 11 months ago
I passed --debug
down to vcpkg via -DVCPKG_INSTALL_OPTIONS
when configuring CMake via CTest.
I also tried with and without --x-abi-tools-use-exact-versions
and it made no difference on Windows.
On our Linux builds, the caching works just fine as expected, so all the evidence is pointing to the reduced permissions for %LOCALAPPDATA%
for user SYSTEM
.
A workaround is to set VCPKG_BINARY_SOURCES
to point to a local files
source with a directory that has suitable permissions for all users to read/write. I validated with --debug
that the new cache was populated and correctly consumed.
you can set system environment variable VCPKG_DEFAULT_BINARY_CACHE
to a path to avoid the issue.
Not really sure why this is closed; IMO vcpkg should attempt to issue a relevant diagnostic in this scenario. Debugging this requires that you know lots of intimate details about user SYSTEM
of which the average developer is unaware.
IMO vcpkg should refuse to run as SYSTEM.
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
Keep-Alive
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
Dear Microsoft,
PLEASE STOP MANAGING YOUR TEAMS BY METRIC OF OPEN ISSUES.
You're not helping anyone. Don't penalize your team for having open bugs with no activity in a while. Many of us that report bugs have full-time jobs that don't involve supporting requests for more information within a narrow time window from your QA team regarding some bug that I filed.
I filed a bunch of bugs on the refactoring support in Visual Studio in 2017 for my refactoring test suite. All the bugs were closed, none with any stated fix or action taken. Some of the issues no longer occur, but the relevant bug was never updated with information.
The end result is that I'm not going to bother filing bugs on Microsoft products anymore as it is a complete waste of my time because you're in a rush to close as many bugs as possible as soon as possible instead of working to help solve the problem and actually make your products better.
For comparison, there are some bugs that I filed against the refactoring support in CLion or ReSharper for C++ and those bugs remain open and available for me to add new comment should I have additional information and remain available for other people to find and easily see that they have not been fixed. When people search github for unresolved problems they search OPEN bugs not closed ones. You're pretending you have fewer problems than you actually have when you close them for "inactivity".
Many thanks for reporting this, I ran into the same issue and you helped
Describe the bug When a gitlab runner invokes vcpkg with binary caching, the artifacts are written to
%LOCALAPPDATA%\vcpkg\archives
as described in the documentation. Howeve, when code is executed as userSYSTEM
(e.g. from inside a service),%LOCALAPPDATA%
resolves to something likeC:\Windows\system32\config\systemprofile\AppData\Local
which is underneath a system directory with restricted permissions. The odd result is that while vcpkg correctly creates cached binary packages, it can't ever uncompress them and therefore rebuilds them on every CI build.Environment
To Reproduce Steps to reproduce the behavior:
--debug
you see output similar to the following:Expected behavior It's unclear what permission is missing in order for 7za.exe to correctly unzip the archive. I added Full Control for all Users and all Authenticated Users to the
vcpkg
subdirectory under%LOCALAPPDATA%
and that wasn't enough. It could be solely due to the way 7za attempts to open it's input files; it's unclear. Perhaps vcpkg could detect when the user is SYSTEM and adopt a different default binary cache location?Failure logs See above snippets
Additional context Sorry this is a corporate gitlab instance or I would point you at full relevant logs.