1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-30 22:20:59 +01:00
nix/src/libcmd
Ivan Trubach 68090d7ff1 Fix empty outputsToInstall for InstallableAttrPath
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)
2024-06-02 14:26:18 +03:00
..
built-path.cc use std::tie() for macro-generated operators 2023-12-19 19:32:16 +01:00
built-path.hh Merge pull request #6236 from obsidiansystems/store-dir-config 2023-12-01 15:38:14 +01:00
command-installable-value.cc Finish converting existing comments for internal API docs (#8146) 2023-04-07 13:55:28 +00:00
command-installable-value.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
command.cc Rename SearchPath to LookupPath and searchPath to lookupPath 2024-04-13 17:35:15 +02:00
command.hh Improve the error message for “multicommands” commands (#9510) 2023-12-06 13:13:45 +00:00
common-eval-args.cc libcmd: Fix #10774 2024-05-29 21:42:53 +02:00
common-eval-args.hh Merge pull request #10573 from RCoeurjoly/Rename_SearchPath 2024-04-21 17:33:46 +02:00
editor-for.cc Get rid of CanonPath::fromCwd 2024-02-08 11:01:41 -05:00
editor-for.hh Combine AbstractPos, PosAdapter, and Pos 2024-01-08 10:59:41 -08:00
installable-attr-path.cc Fix empty outputsToInstall for InstallableAttrPath 2024-06-02 14:26:18 +03:00
installable-attr-path.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
installable-derived-path.cc Fixing #7479 2023-08-18 11:44:00 -04:00
installable-derived-path.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
installable-flake.cc print type and value in "flake attr is not a derivation" errors 2024-05-29 20:51:32 +02:00
installable-flake.hh Rename 'resolvedRef' to 'lockedRef' 2023-07-03 12:23:57 +02:00
installable-value.cc fetchToStore(): Don't always respect settings.readOnlyMode 2024-02-20 11:46:49 +01:00
installable-value.hh DerivationInfo -> PackageInfo 2024-01-16 15:28:03 +01:00
installables.cc nix3-build: show all FOD errors with --keep-going 2024-05-17 18:48:52 +02:00
installables.hh DerivationInfo -> PackageInfo 2024-01-16 15:28:03 +01:00
legacy.cc Move command plugin interface to libnixcmd 2021-01-26 06:22:24 -05:00
legacy.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
local.mk Add unix (and linux) dirs 2024-04-02 12:55:23 -04:00
markdown.cc Build a minimized Nix with MinGW 2024-04-17 12:26:10 -04:00
markdown.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
misc-store-flags.cc Document store object content addressing & improve JSON format 2024-05-20 09:34:35 -04:00
misc-store-flags.hh nix hash path, and preperatory refactors 2024-02-21 12:11:25 -05:00
network-proxy.cc Slightly change formatting style 2024-05-22 09:20:15 -04:00
network-proxy.hh Honor the same set of proxy environment variables (#10611) 2024-05-06 15:39:22 -04:00
nix-cmd.pc.in Fix building with GCC 9 2023-02-10 18:38:57 +01:00
repl-interacter.cc Build a minimized Nix with MinGW 2024-04-17 12:26:10 -04:00
repl-interacter.hh refactor: repl prompts are now the job of the interacter 2024-03-12 18:25:35 -07:00
repl.cc Merge pull request #10754 from qwqawawow/master 2024-05-27 10:07:15 -04:00
repl.hh Rename SearchPath to LookupPath and searchPath to lookupPath 2024-04-13 17:35:15 +02:00