mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 09:49:36 +01:00
Handle store symlinks in flake directories
E.g. 'nix path-info ./result' inside a flake directory now works again.
This commit is contained in:
parent
4f6a7c8621
commit
d132d057a8
5 changed files with 25 additions and 12 deletions
|
|
@ -55,7 +55,7 @@ Path Store::followLinksToStore(const Path & _path) const
|
|||
path = absPath(target, dirOf(path));
|
||||
}
|
||||
if (!isInStore(path))
|
||||
throw Error(format("path '%1%' is not in the Nix store") % path);
|
||||
throw NotInStore("path '%1%' is not in the Nix store", path);
|
||||
return path;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ MakeError(InvalidPath, Error)
|
|||
MakeError(Unsupported, Error)
|
||||
MakeError(SubstituteGone, Error)
|
||||
MakeError(SubstituterDisabled, Error)
|
||||
MakeError(NotInStore, Error)
|
||||
|
||||
|
||||
struct BasicDerivation;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue