mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 01:39:36 +01:00
nix-build: Fix !<output> handling
This was broken by 22a754c091.
https://hydra.nixos.org/eval/1573669
This commit is contained in:
parent
887030f211
commit
d37dc71e3c
3 changed files with 4 additions and 3 deletions
|
|
@ -64,7 +64,7 @@ std::optional<StorePath> Store::maybeParseStorePath(std::string_view path) const
|
|||
}
|
||||
}
|
||||
|
||||
bool Store::isStorePath(const Path & path) const
|
||||
bool Store::isStorePath(std::string_view path) const
|
||||
{
|
||||
return (bool) maybeParseStorePath(path);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -305,7 +305,7 @@ public:
|
|||
|
||||
/* Return true if ‘path’ is a store path, i.e. a direct child of
|
||||
the Nix store. */
|
||||
bool isStorePath(const Path & path) const;
|
||||
bool isStorePath(std::string_view path) const;
|
||||
|
||||
/* Chop off the parts after the top-level store name, e.g.,
|
||||
/nix/store/abcd-foo/bar => /nix/store/abcd-foo. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue