mirror of
https://github.com/NixOS/nix.git
synced 2025-11-17 07:52:43 +01:00
Make many members of DerivationGoal private
This commit is contained in:
parent
c37df9c87c
commit
ed55937002
1 changed files with 22 additions and 20 deletions
|
|
@ -43,21 +43,6 @@ struct DerivationGoal : public Goal
|
||||||
*/
|
*/
|
||||||
OutputName wantedOutput;
|
OutputName wantedOutput;
|
||||||
|
|
||||||
/**
|
|
||||||
* The derivation stored at drvPath.
|
|
||||||
*/
|
|
||||||
std::unique_ptr<Derivation> drv;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The remainder is state held during the build.
|
|
||||||
*/
|
|
||||||
|
|
||||||
std::map<std::string, InitialOutput> initialOutputs;
|
|
||||||
|
|
||||||
BuildMode buildMode;
|
|
||||||
|
|
||||||
std::unique_ptr<MaintainCount<uint64_t>> mcExpectedBuilds;
|
|
||||||
|
|
||||||
DerivationGoal(
|
DerivationGoal(
|
||||||
const StorePath & drvPath,
|
const StorePath & drvPath,
|
||||||
const Derivation & drv,
|
const Derivation & drv,
|
||||||
|
|
@ -73,6 +58,28 @@ struct DerivationGoal : public Goal
|
||||||
|
|
||||||
std::string key() override;
|
std::string key() override;
|
||||||
|
|
||||||
|
JobCategory jobCategory() const override
|
||||||
|
{
|
||||||
|
return JobCategory::Administration;
|
||||||
|
};
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The derivation stored at drvPath.
|
||||||
|
*/
|
||||||
|
std::unique_ptr<Derivation> drv;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The remainder is state held during the build.
|
||||||
|
*/
|
||||||
|
|
||||||
|
std::map<std::string, InitialOutput> initialOutputs;
|
||||||
|
|
||||||
|
BuildMode buildMode;
|
||||||
|
|
||||||
|
std::unique_ptr<MaintainCount<uint64_t>> mcExpectedBuilds;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The states.
|
* The states.
|
||||||
*/
|
*/
|
||||||
|
|
@ -95,11 +102,6 @@ struct DerivationGoal : public Goal
|
||||||
Co repairClosure();
|
Co repairClosure();
|
||||||
|
|
||||||
Done done(BuildResult::Status status, SingleDrvOutputs builtOutputs = {}, std::optional<Error> ex = {});
|
Done done(BuildResult::Status status, SingleDrvOutputs builtOutputs = {}, std::optional<Error> ex = {});
|
||||||
|
|
||||||
JobCategory jobCategory() const override
|
|
||||||
{
|
|
||||||
return JobCategory::Administration;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace nix
|
} // namespace nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue