Hello, Ricardo Wurmus <rek...@elephly.net> skribis:
>> On latest >> >> ./pre-inst guix package -i something >> >> The new color scheme is nice for output. But I miss the old build >> logs. How do I get them back? > > The build logs are stored by the daemon. You can get their location by > doing > > guix build --log-file something What about immediately giving the file name of the log, as with the patch attached? Several people have already mentioned not knowing about ‘guix build --log-file’ so this would probably be helpful. Thanks for bringing colors and minimalism to the tools’ output! :-) Ludo’.
diff --git a/guix/ui.scm b/guix/ui.scm index 1bbd37c25..98425eaff 100644 --- a/guix/ui.scm +++ b/guix/ui.scm @@ -1708,12 +1708,15 @@ phase announcements and replaces any other output with a spinner." (string-append (proc "Building " 'BLUE 'BOLD) (match:substring m 2) "\n"))) - ("^(@ build-failed) (.*) (.*)" + ("^(@ build-failed) ([[:graph:]]+*) (.*)" #:transform ,(lambda (m) - (string-append - (proc "Build failed: " 'RED 'BOLD) - (match:substring m 2) "\n"))) + (let ((drv (match:substring m 2))) + (string-append + (proc "Build failed: " 'RED 'BOLD) + drv "\n") + (info (G_ "build log available at '~a'~%") + (log-file #f (pk 'drv drv)))))) ;XXX: 1st arg ("^(@ build-succeeded) (.*) (.*)" #:transform ,(lambda (m)