Does nix build deamon keep build log?

笑着哭i 提交于 2020-01-15 06:25:10

问题


Sometime when running nix-build and nixos-rebuild I found easy-to-fix problem (like deprecated warnings, redundant import) and I thought "Interesting, I might be able to fix that on my free time".

I know I could redirect the build log to a file but I keep forget doing it until I see the warning again.

Question: Does nix build daemon keep building log somewhere?


回答1:


You can enable build-cache-failures in your nix.conf and then use a combination of

nix-store --query-failed-paths

and

nix-store --read-log

If the build failure cache was not already enabled, there is probably no (easy) way to recall which builds have failed, unless you have something to grep -R for in /nix/var/log/nix/drvs/.



来源:https://stackoverflow.com/questions/47262380/does-nix-build-deamon-keep-build-log

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!