-
I build a Docker-Container and want to prefill the Binary-Cache, such that when the container is used to build a repository in Manifest mode, and the manifest and compiler has not changed, the cached artifacts will be used. However, when we use this Docker container according to the manual, the cache is not used and the packages are rebuilt. Is there any way I can tell VCPKG to tell me why a Cache-Miss happened? Or dump me the cache's content, so that I can maybe spot the different compiler flags or whatever is causing the Cache-Misses? I suspect a change in compiler flags, because the CCache also grows during the second build, indicating that possibly something with the compiler flags changed. I created VCPKG's working tree using
This just checks out the package to
That
And this is my manifest:
Is there any obvious mistake that I'm making? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the solution! I used the "vcpkg_abi_info.txt" files in the install folder's share directory and found that the I use Visual Studio Code's CMake Tools, and it has the following additional entry in
I now set the PATH identical in both the |
Beta Was this translation helpful? Give feedback.
I found the solution! I used the "vcpkg_abi_info.txt" files in the install folder's share directory and found that the
ENV
-variables are different. Precisely, thePATH
variable differs!I use Visual Studio Code's CMake Tools, and it has the following additional entry in
PATH
:I now set the PATH identical in both the
CMakePresets
and in the Dockerfile, and it now uses the binary cache as it should!