Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::DrvOutputSubstitutionGoal Class Reference

#include <drv-output-substitution-goal.hh>

Inheritance diagram for nix::DrvOutputSubstitutionGoal:
nix::Goal

Public Member Functions

 DrvOutputSubstitutionGoal (const DrvOutput &id, Worker &worker)
Co< ExitCode > init ()
std::string key () override
JobCategory jobCategory () const override
 Hint for the scheduler, which concurrency limit applies.
Public Member Functions inherited from nix::Goal
virtual void cleanup ()
 Goal (Worker &worker, Co< ExitCode > init)
void work ()
void handleChildOutput (Descriptor fd, std::string_view data)
void handleEOF (Descriptor fd)
void timedOut (TimedOut &&ex)
void trace (std::string_view s)
std::string getName () const
std::string_view keyCached () &

Public Attributes

std::shared_ptr< const UnkeyedRealisation > outputInfo
Public Attributes inherited from nix::Goal
Worker & worker
WeakGoals waiters
size_t nrFailed = 0
size_t nrNoSubstituters = 0
std::string name
std::optional< ExitCode > exitCode
BuildResult buildResult
bool preserveFailure = false

Friends

class Worker

Additional Inherited Members

Public Types inherited from nix::Goal
enum  ExitCode { ecSuccess , ecFailed , ecNoSubstituters }
using ChildEvent = std::variant<ChildOutput, ChildEOF, std::unique_ptr<TimedOut>>
template<typename T>
using HandleType = std::coroutine_handle<AwaitableFrame<T>>
using HandleTypeBase = std::coroutine_handle<AwaitableFrameBase>
Protected Member Functions inherited from nix::Goal
Co< void > await (Goals waitees)
Co< void > waitForAWhile ()
Co< void > waitUntilWoken ()
Co< void > waitForBuildSlot ()
Co< void > yield ()
Protected Attributes inherited from nix::Goal
std::optional< CoBase > top_co
std::optional< ExitCode > finalExitCode

Detailed Description

Fetch a Realisation (drv тип output name -> output path) from a substituter.

If the output store object itself should also be substituted, that is the responsibility of the caller to do so.

Todo
rename this BuildTraceEntryGoal, which will make sense especially once Realisation is renamed to BuildTraceEntry.

Member Function Documentation

◆ jobCategory()

JobCategory nix::DrvOutputSubstitutionGoal::jobCategory ( ) const
inlineoverridevirtual

Hint for the scheduler, which concurrency limit applies.

See also
JobCategory

Implements nix::Goal.

◆ key()

std::string nix::DrvOutputSubstitutionGoal::key ( )
overridevirtual

Used for comparisons. The order matters a bit for scheduling. We want:

  1. Substitution
  2. Derivation administrativia
  3. Actual building

Also, ensure that derivations get processed in order of their name, i.e. a derivation named "aardvark" always comes before "baboon".

Implements nix::Goal.

Member Data Documentation

◆ outputInfo

std::shared_ptr<const UnkeyedRealisation> nix::DrvOutputSubstitutionGoal::outputInfo

The realisation corresponding to the given output id. Will be filled once we can get it.


The documentation for this class was generated from the following files: