nixpkgs/doc/stdenv
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
..
cross-compilation.chapter.md
meta.chapter.md docs: prefer maintainers: add commits to be in the same pull request 2023-01-07 17:00:32 -05:00
multiple-output.chapter.md doc: fix typos 2022-12-17 18:21:48 -05:00
platform-notes.chapter.md
stdenv.chapter.md multi-outputs.sh: Improve _assignFirst error message 2023-01-16 12:57:01 +01:00