diff options
author | Raphael Robatsch <raphael-git@tapesoftware.net> | 2023-04-13 16:22:45 +0200 |
---|---|---|
committer | Raphael Robatsch <raphael-git@tapesoftware.net> | 2023-04-14 10:32:03 +0200 |
commit | 9e8f2090365a509656dead69bc91fb6615cf9d05 (patch) | |
tree | 08c6f9a17689f6166a76e0fe82c0d52e48391195 /src/libstore/derivations.hh | |
parent | ef0b48377d0fc79d70455c402ed4df4b18cb93dd (diff) |
Display valid installable in InstallableDerivedPath::parse warning
The warning message should produce an installable name that can be
passed to `nix build`, `nix path-info`, etc. again. Since the CLI
expects that the .drv path and the output names are separated by
a caret, the warning message must also separate the .drv path and output
names with a caret.
However, `DerivedPath::Built.to_string()` uses an exclamation point as
the separator instead. This commit adds a `separator` argument to the
to_string method.
This changes the warning message from:
If this command is now failing try again with '/nix/store/foo.drv!*'
to:
If this command is now failing try again with '/nix/store/foo.drv^*'
Diffstat (limited to 'src/libstore/derivations.hh')
0 files changed, 0 insertions, 0 deletions