![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include <build-result.hh>
Public Member Functions | |
| void | updateFromStatus (BuildResult::Failure::Status status) |
| unsigned int | failingExitStatus () const |
Public Attributes | |
| bool | permanentFailure = false |
| bool | timedOut = false |
| bool | hashMismatch = false |
| bool | checkMismatch = false |
Flags tracking different types of build failures for exit status computation.
| unsigned int nix::ExitStatusFlags::failingExitStatus | ( | ) | const |
The exit status in case of failure.
In the case of a build failure, returned value follows this bitmask:
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.
| void nix::ExitStatusFlags::updateFromStatus | ( | BuildResult::Failure::Status | status | ) |
Update flags based on a build failure status.
| bool nix::ExitStatusFlags::checkMismatch = false |
Set if at least one derivation is not deterministic in check mode.
| bool nix::ExitStatusFlags::hashMismatch = false |
Set if at least one derivation fails with a hash mismatch.
| bool nix::ExitStatusFlags::permanentFailure = false |
Set if at least one derivation had a BuildError (i.e. permanent failure).
| bool nix::ExitStatusFlags::timedOut = false |
Set if at least one derivation had a timeout.