You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm trying to use binary caching for gitlab windows runners.
vcpkg looks for 023dd0049c752931548a69400b380edc1da48022.zip in C:\Users\gitlab_runner\AppData\Local\vcpkg\archives instead of C:\GitLab-Runner\builds\cryptomilk\libssh-mirror\.vcpkg\archives defined by VCPKG_DEFAULT_BINARY_CACHE environment variable!
Log snippet:
$ If (!(test-path .vcpkg\archives)) { mkdir -p .vcpkg\archives }
Directory: C:\GitLab-Runner\builds\cryptomilk\libssh-mirror\.vcpkg
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 5/26/2021 2:23 PM archives
$ ls .vcpkg
Directory: C:\GitLab-Runner\builds\cryptomilk\libssh-mirror\.vcpkg
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 5/26/2021 2:23 PM archives
$ ls .vcpkg\archives
$ $env:VCPKG_DEFAULT_BINARY_CACHE="$PWD\.vcpkg\archives"
$ echo $env:VCPKG_DEFAULT_BINARY_CACHE
C:\GitLab-Runner\builds\cryptomilk\libssh-mirror\.vcpkg\archives
$ $env:VCPKG_DEFAULT_TRIPLET="x64-windows"
$ vcpkg install cmocka
Computing installation plan...
The following packages will be built and installed:
cmocka[core]:x64-windows
Detecting compiler hash for triplet x64-windows...
A suitable version of git was not found (required v2.26.2). Downloading portable git v2.26.2...
Downloading git...
https://github.com/git-for-windows/git/releases/download/v2.26.2.windows.1/PortableGit-2.26.2-32-bit.7z.exe -> C:\vcpkg\downloads\PortableGit-2.26.2-32-bit.7z.exe
Extracting git...
A suitable version of 7zip was not found (required v18.1.0). Downloading portable 7zip v18.1.0...
Downloading 7zip...
https://www.nuget.org/api/v2/package/7-Zip.CommandLine/18.1.0 -> C:\vcpkg\downloads\7-zip.commandline.18.1.0.nupkg
Extracting 7zip...
A suitable version of nuget was not found (required v5.5.1). Downloading portable nuget v5.5.1...
Downloading nuget...
https://dist.nuget.org/win-x86-commandline/v5.5.1/nuget.exe -> C:\vcpkg\downloads\22ea847d-nuget.exe
A suitable version of powershell-core was not found (required v6.2.1). Downloading portable powershell-core v6.2.1...
Downloading powershell-core...
https://github.com/PowerShell/PowerShell/releases/download/v6.2.1/PowerShell-6.2.1-win-x86.zip -> C:\vcpkg\downloads\PowerShell-6.2.1-win-x86.zip
Extracting powershell-core...
Starting package 1/1: cmocka:x64-windows
Building package cmocka[core]:x64-windows...
Could not locate cached archive: C:\Users\gitlab_runner\AppData\Local\vcpkg\archives\02\023dd0049c752931548a69400b380edc1da48022.zip
Describe the bug
I'm trying to use binary caching for gitlab windows runners.
vcpkg looks for 023dd0049c752931548a69400b380edc1da48022.zip in
C:\Users\gitlab_runner\AppData\Local\vcpkg\archives
instead ofC:\GitLab-Runner\builds\cryptomilk\libssh-mirror\.vcpkg\archives
defined by VCPKG_DEFAULT_BINARY_CACHE environment variable!Log snippet:
Full log:
https://gitlab.com/cryptomilk/libssh-mirror/-/jobs/1295357514
Environment
To Reproduce
Steps to reproduce the behavior:
Expected behavior
If VCPKG_DEFAULT_BINARY_CACHE env variable it set, it should search this location for cached archives.
Failure logs
https://gitlab.com/cryptomilk/libssh-mirror/-/jobs/1295357514
Sidenote
It correctly stores it in the cache set via VCPKG_DEFAULT_BINARY_CACHE, it just doesn't load it from there ... :-)
The text was updated successfully, but these errors were encountered: