diff options
author | Ludovic Courtès <ludo@gnu.org> | 2023-02-06 15:02:34 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-02-11 00:09:40 +0100 |
commit | 3ab8559436356ef89aa60135d3558681d64443ae (patch) | |
tree | 3ec0c267a772cb4749fcb3d68a627fdb7c928d03 /guix/channels.scm | |
parent | f944fa718dbfbfafecf30a71d9d4c31dc861996b (diff) |
status: Print a hint when a 'package-cache' hook fails to build.
* guix/channels.scm (package-cache-file): Add 'channels' to the #:properties
list.
* guix/status.scm (print-build-event): Upon failure, display a hint when
the derivation is a 'package-cache' hook.
Diffstat (limited to 'guix/channels.scm')
-rw-r--r-- | guix/channels.scm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/guix/channels.scm b/guix/channels.scm index 40cbc4bb3a..d44e7a0a3a 100644 --- a/guix/channels.scm +++ b/guix/channels.scm @@ -952,6 +952,10 @@ be used as a profile hook." (backtrace)))) (mkdir #$output)))) + (define channels + (map (compose string->symbol manifest-entry-name) + (manifest-entries manifest))) + (gexp->derivation-in-inferior "guix-package-cache" build profile @@ -960,8 +964,9 @@ be used as a profile hook." ;; instead of failing. #:silent-failure? #t - #:properties '((type . profile-hook) - (hook . package-cache)) + #:properties `((type . profile-hook) + (hook . package-cache) + (channels . ,channels)) #:local-build? #t))) (define %channel-profile-hooks |