mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Fix build to use CanonPath in new FSO sinks
This commit is contained in:
parent
86420753ec
commit
4fd8f19ecf
6 changed files with 30 additions and 24 deletions
|
@ -909,9 +909,12 @@ struct GitFileSystemObjectSinkImpl : GitFileSystemObjectSink
|
|||
addToTree(*pathComponents.rbegin(), oid, GIT_FILEMODE_LINK);
|
||||
}
|
||||
|
||||
void createHardlink(const Path & path, const CanonPath & target) override
|
||||
void createHardlink(const CanonPath & path, const CanonPath & target) override
|
||||
{
|
||||
auto pathComponents = tokenizeString<std::vector<std::string>>(path, "/");
|
||||
std::vector<std::string> pathComponents;
|
||||
for (auto & c : path)
|
||||
pathComponents.emplace_back(c);
|
||||
|
||||
if (!prepareDirs(pathComponents, false)) return;
|
||||
|
||||
// We can't just look up the path from the start of the root, since
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue