1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-03 06:11:46 +02:00

Do no store timestamps in the build result in the build hook case

The variables are only set by CGroup mechanisms in `killSandbox` in the
local build. In the build hook case, these variables will not be set, so
there is nothing to do.
This commit is contained in:
John Ericson 2025-03-12 16:18:18 -04:00
parent db8439c328
commit a39ed67180

View file

@ -922,14 +922,6 @@ Goal::Co DerivationGoal::hookDone()
/* Close the log file. */
closeLogFile();
if (buildResult.cpuUser && buildResult.cpuSystem) {
debug("builder for '%s' terminated with status %d, user CPU %.3fs, system CPU %.3fs",
worker.store.printStorePath(drvPath),
status,
((double) buildResult.cpuUser->count()) / 1000000,
((double) buildResult.cpuSystem->count()) / 1000000);
}
try {
/* Check the exit status. */