Skip to content

Commit

Permalink
A very stupid fix
Browse files Browse the repository at this point in the history
but still better than a failed build.
  • Loading branch information
frivard-coveo committed Apr 19, 2021
1 parent b7a5329 commit ad06323
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/vcpkg/vcpkgpaths.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,13 @@ If you wish to silence this error and use classic mode, you can:
}
fs.rename(destination_tmp, destination, ec);
if (ec)
{
// sleep and try again
Debug::print("*** !!! *** Error: while renaming ", fs::u8string(destination_tmp), " to ", fs::u8string(destination), " ; retrying...\n ");
std::this_thread::sleep_for(std::chrono::milliseconds{50});
fs.rename(destination_tmp, destination, ec);
}
if (ec)
{
return {Strings::concat(PRELUDE,
"Error: while renaming ",
Expand Down

0 comments on commit ad06323

Please sign in to comment.