nixpkgs/pkgs
Robert Hensing 01d7f19346 multi-outputs.sh: Improve _assignFirst error message
Closes #16182

This improves the error message

    Error: _assignFirst found no valid variant!

which occurred when the set of outputs was not sufficient to set
the various outputDev, outputBin, etc variables. Specifically, this
would mean that "out" is not among the outputs, which is valid for
a derivation.

This changes the message to something like

    error: _assignFirst: could not find a non-empty variable to assign to outputDev. The following variables were all unset or empty: dev out.
          If you did not define an "out" output, make sure to define all the specific required outputs: define an output for one of the unset variables.

While this isn't a full explanation of what stdenv can and can not do,
I think it's vast improvement over the 0 bits of information that it
used to provide. This at least gives a clue as to what's going on, and
even suggests a fix, although probably multiple such fixes are required
in an instance where someone starts with a no-out derivation from scratch
(and decide to persist).
2023-01-16 12:57:01 +01:00
..
applications Merge pull request #210702 from r-ryantm/auto-update/oculante 2023-01-14 13:26:11 -05:00
build-support multi-outputs.sh: Improve _assignFirst error message 2023-01-16 12:57:01 +01:00
common-updater
data catppuccin-cursors: unstable-2022-08-23 -> 0.2.0 2023-01-14 13:47:33 -05:00
desktops Merge remote-tracking branch 'origin/master' into staging-next 2023-01-12 23:07:01 +01:00
development Merge pull request #210608 from r-ryantm/auto-update/libcotp 2023-01-14 14:03:09 -05:00
games Merge pull request #209180 from NixOS/staging-next 2023-01-14 16:26:39 +00:00
misc Merge remote-tracking branch 'origin/master' into staging-next 2023-01-11 03:51:33 +01:00
os-specific Merge pull request #208775 from sweenu/patch_ddcci_driver 2023-01-14 19:03:48 +02:00
pkgs-lib
servers Merge pull request #209180 from NixOS/staging-next 2023-01-14 16:26:39 +00:00
shells pkgsStatic.bash: fix build 2023-01-13 13:12:40 +00:00
stdenv Merge master into staging-next 2023-01-11 20:58:29 +00:00
test multi-outputs.sh: Improve _assignFirst error message 2023-01-16 12:57:01 +01:00
tools Merge pull request #210545 from r-ryantm/auto-update/cloudfox 2023-01-14 17:50:42 +01:00
top-level Merge pull request #209180 from NixOS/staging-next 2023-01-14 16:26:39 +00:00