(zilch nix drv): fix failed derivation output logging
This commit is contained in:
parent
ca920c0ae3
commit
3f2e90543e
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@
|
|||
(for-each
|
||||
(lambda (output)
|
||||
(unless (string=? (derivation-output-path (cdr output)) (make-output-path "sha256" modulo-hash (car output) name))
|
||||
(fprintf (current-error-port) "meow ~S\n" (utf8->string (derivation-cached-data-serialized (derivation-cached-data tmp-drv))))
|
||||
(fprintf (current-error-port) "(failed derivation contents: ~S)\n" (utf8->string (call-with-port (open-output-bytevector) (lambda (p) (derivation-serialize tmp-drv p) (get-output-bytevector p)))))
|
||||
(error "Derivation output path mismatch: " (make-output-path "sha256" modulo-hash (car output) name) " vs " (derivation-output-path (cdr output)))))
|
||||
(derivation-outputs orig-drv)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue