Merge pull request #6397 from sebastianblunt/builderlogging

Log builder args and environment variables
This commit is contained in:
Eelco Dolstra 2022-04-11 11:13:35 +02:00 committed by GitHub
commit 734019ce56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -704,6 +704,9 @@ void LocalDerivationGoal::startBuilder()
/* Run the builder. */
printMsg(lvlChatty, "executing builder '%1%'", drv->builder);
printMsg(lvlChatty, "using builder args '%1%'", concatStringsSep(" ", drv->args));
for (auto & i : drv->env)
printMsg(lvlVomit, "setting builder env variable '%1%'='%2%'", i.first, i.second);
/* Create the log file. */
Path logFile = openLogFile();