evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / vc / vcpkg-tool / change-lock-location.patch
blobd3cf8e0f8137ea62ccefca14c81b64cd85d8e751
1 diff --git a/src/vcpkg/vcpkgpaths.cpp b/src/vcpkg/vcpkgpaths.cpp
2 index 3f588c21..e6f2bbed 100644
3 --- a/src/vcpkg/vcpkgpaths.cpp
4 +++ b/src/vcpkg/vcpkgpaths.cpp
5 @@ -579,7 +579,8 @@ namespace vcpkg
6 if (!args.do_not_take_lock)
8 std::error_code ec;
9 - const auto vcpkg_root_file = root / ".vcpkg-root";
10 + fs.create_directories(Path{"/tmp/vcpkg"}, VCPKG_LINE_INFO);
11 + const auto vcpkg_root_file = Path{"/tmp/vcpkg"} / Hash::get_string_sha256(root.c_str());
12 if (args.wait_for_lock.value_or(false))
14 file_lock_handle = fs.take_exclusive_file_lock(vcpkg_root_file, ec);