Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::Worker::Results Struct Reference

Public Attributes

std::map< size_t, Goal::WorkResultgoals
unsigned int failingExitStatus

Member Data Documentation

◆ failingExitStatus

unsigned int nix::Worker::Results::failingExitStatus

The exit status in case of failure.

In the case of a build failure, returned value follows this bitmask:

0b1100100
^^^^
|||`- timeout
||`-- output hash mismatch
|`--- build failure
`---- not deterministic

In other words, the failure code is at least 100 (0b1100100), but might also be greater.

Otherwise (no build failure, but some other sort of failure by assumption), this returned value is 1.

◆ goals

std::map<size_t, Goal::WorkResult> nix::Worker::Results::goals

Results of individual goals, if available. Goal results will be added to this map with the index they had in the Targets list returned by the goal factory function passed to work. If some goals did not complete processing, e.g. due to an early exit on goal failures, not all indices will be set. This may be used to detect which of the goals were cancelled before they completed.


The documentation for this struct was generated from the following file: