mirror of
https://github.com/NixOS/nix.git
synced 2025-11-30 22:20:59 +01:00
Fixes assertion failure if outputsToInstall is empty by defaulting to the "out" output. That is, behavior between the following commands should be consistent: $ nix build --no-link --json .#nothing-to-install-no-out error: derivation '/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-nothing-to-install-no-out.drv' does not have wanted outputs 'out' $ nix build --no-link --file default.nix --json nothing-to-install-no-out error: derivation '/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-nothing-to-install-no-out.drv' does not have wanted outputs 'out' Real-world example of this issue: $ nix build --json .#.legacyPackages.aarch64-linux.texlive.pkgs.iwona error: derivation '/nix/store/dj0h6b0pnlnan5nidnhqa0bmzq4rv6sx-iwona-0.995b.drv' does not have wanted outputs 'out' $ git rev-parse HEAD eee33247cf6941daea8398c976bd2dda7962b125 $ nix build --json --file . texlive.pkgs.iwona nix: src/libstore/outputs-spec.hh:46: nix::OutputsSpec::Names::Names(std::set<std::__cxx11::basic_string<char> >&&): Assertion `!empty()' failed. Aborted (core dumped) |
||
|---|---|---|
| .. | ||
| built-path.cc | ||
| built-path.hh | ||
| command-installable-value.cc | ||
| command-installable-value.hh | ||
| command.cc | ||
| command.hh | ||
| common-eval-args.cc | ||
| common-eval-args.hh | ||
| editor-for.cc | ||
| editor-for.hh | ||
| installable-attr-path.cc | ||
| installable-attr-path.hh | ||
| installable-derived-path.cc | ||
| installable-derived-path.hh | ||
| installable-flake.cc | ||
| installable-flake.hh | ||
| installable-value.cc | ||
| installable-value.hh | ||
| installables.cc | ||
| installables.hh | ||
| legacy.cc | ||
| legacy.hh | ||
| local.mk | ||
| markdown.cc | ||
| markdown.hh | ||
| misc-store-flags.cc | ||
| misc-store-flags.hh | ||
| network-proxy.cc | ||
| network-proxy.hh | ||
| nix-cmd.pc.in | ||
| repl-interacter.cc | ||
| repl-interacter.hh | ||
| repl.cc | ||
| repl.hh | ||