mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
StorePathAccessor: Fix path display
Set the prefix to the store path to fix messages like "copying '/' to the store" to "copying '/nix/store/bla' to the store".
This commit is contained in:
parent
d2a07a96ba
commit
fa01db9626
1 changed files with 4 additions and 1 deletions
|
@ -24,7 +24,10 @@ ref<InputAccessor> makeStorePathAccessor(
|
||||||
const StorePath & storePath)
|
const StorePath & storePath)
|
||||||
{
|
{
|
||||||
// FIXME: should use `store->getFSAccessor()`
|
// FIXME: should use `store->getFSAccessor()`
|
||||||
return makeFSInputAccessor(std::filesystem::path { store->toRealPath(storePath) });
|
auto root = std::filesystem::path { store->toRealPath(storePath) };
|
||||||
|
auto accessor = makeFSInputAccessor(root);
|
||||||
|
accessor->setPathDisplay(root);
|
||||||
|
return accessor;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourcePath getUnfilteredRootPath(CanonPath path)
|
SourcePath getUnfilteredRootPath(CanonPath path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue