问题
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