File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,12 @@ Goal::Co DerivationBuildingGoal::gaveUpOnSubstitution()
238
238
239
239
/* Determine the full set of input paths. */
240
240
241
+ /* *
242
+ * All input paths (that is, the union of FS closures of the
243
+ * immediate input paths).
244
+ */
245
+ StorePathSet inputPaths;
246
+
241
247
/* First, the input derivations. */
242
248
{
243
249
auto & fullDrv = *drv;
@@ -553,7 +559,7 @@ Goal::Co DerivationBuildingGoal::gaveUpOnSubstitution()
553
559
if (buildLocally) {
554
560
useHook = false ;
555
561
} else {
556
- switch (tryBuildHook ()) {
562
+ switch (tryBuildHook (inputPaths )) {
557
563
case rpAccept:
558
564
/* Yes, it has started doing so. Wait until we get
559
565
EOF from the hook. */
@@ -957,7 +963,7 @@ BuildError DerivationBuildingGoal::fixupBuilderFailureErrorMessage(BuilderFailur
957
963
return BuildError{e.status , msg};
958
964
}
959
965
960
- HookReply DerivationBuildingGoal::tryBuildHook ()
966
+ HookReply DerivationBuildingGoal::tryBuildHook (const StorePathSet & inputPaths )
961
967
{
962
968
#ifdef _WIN32 // TODO enable build hook on Windows
963
969
return rpDecline;
Original file line number Diff line number Diff line change @@ -49,12 +49,6 @@ private:
49
49
* The remainder is state held during the build.
50
50
*/
51
51
52
- /* *
53
- * All input paths (that is, the union of FS closures of the
54
- * immediate input paths).
55
- */
56
- StorePathSet inputPaths;
57
-
58
52
std::map<std::string, InitialOutput> initialOutputs;
59
53
60
54
/* *
@@ -107,7 +101,7 @@ private:
107
101
/* *
108
102
* Is the build hook willing to perform the build?
109
103
*/
110
- HookReply tryBuildHook ();
104
+ HookReply tryBuildHook (const StorePathSet & inputPaths );
111
105
112
106
/* *
113
107
* Open a log file and a pipe to it.
You can’t perform that action at this time.
0 commit comments