[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guix build output insufficient
From: |
Ludovic Courtès |
Subject: |
Re: Guix build output insufficient |
Date: |
Wed, 12 Sep 2018 19:09:39 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
Ricardo Wurmus <address@hidden> 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)
Re: Guix build output insufficient,
Ludovic Courtès <=