unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24140: Substitute hash mismatches not properly reported
@ 2016-08-03  9:50 Ludovic Courtès
  2020-07-09 13:56 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2016-08-03  9:50 UTC (permalink / raw)
  To: 24140

Hello,

When using ‘guix package’, upon a substitute hash mismatch, all we see
is something like this:

--8<---------------cut here---------------start------------->8---
Found valid signature for /gnu/store/cpw9yca1mcqhqfq450dr3rz2jzr95l69-glib-2.48.0
From https://mirror.hydra.gnu.org/nar/cpw9yca1mcqhqfq450dr3rz2jzr95l69-glib-2.48.0
Downloading cpw9yc...-glib-2.48.0 (13.5MiB installed)...
 glib-2.48.0                                                                                    744KiB/s 00:04 | 2.9MiB transferred
killing process 11821
guix system: error: build failed: some substitutes for the outputs of derivation `/gnu/store/lkvlm17z8qm1v6r4n5ja5vcmsp7d860i-graphviz-2.38.0.drv' failed (usually happens due to networking issues); try `--fallback' to build derivation from source 
--8<---------------cut here---------------end--------------->8---

The error message from build.cc:

--8<---------------cut here---------------start------------->8---
      if (expectedHash != actualHash)
          throw SubstError(format("hash mismatch in downloaded path `%1%': expected %2%, got %3%")
              % storePath % printHash(expectedHash) % printHash(actualHash));
--8<---------------cut here---------------end--------------->8---

… is only visible when we set-build-options #:print-build-trace? #t
(like ‘guix build’ does, but ‘guix package’ and others do not.)

The message should always be displayed, regardless of
#:print-build-trace?.

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#24140: Substitute hash mismatches not properly reported
  2016-08-03  9:50 bug#24140: Substitute hash mismatches not properly reported Ludovic Courtès
@ 2020-07-09 13:56 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2020-07-09 13:56 UTC (permalink / raw)
  To: 24140-done

ludo@gnu.org (Ludovic Courtès) skribis:

> When using ‘guix package’, upon a substitute hash mismatch, all we see
> is something like this:
>
> Found valid signature for /gnu/store/cpw9yca1mcqhqfq450dr3rz2jzr95l69-glib-2.48.0
>>From https://mirror.hydra.gnu.org/nar/cpw9yca1mcqhqfq450dr3rz2jzr95l69-glib-2.48.0
> Downloading cpw9yc...-glib-2.48.0 (13.5MiB installed)...
>  glib-2.48.0                                                                                    744KiB/s 00:04 | 2.9MiB transferred
> killing process 11821
> guix system: error: build failed: some substitutes for the outputs of derivation `/gnu/store/lkvlm17z8qm1v6r4n5ja5vcmsp7d860i-graphviz-2.38.0.drv' failed (usually happens due to networking issues); try `--fallback' to build derivation from source 
>
>
> The error message from build.cc:
>
>       if (expectedHash != actualHash)
>           throw SubstError(format("hash mismatch in downloaded path `%1%': expected %2%, got %3%")
>               % storePath % printHash(expectedHash) % printHash(actualHash));
>
> … is only visible when we set-build-options #:print-build-trace? #t
> (like ‘guix build’ does, but ‘guix package’ and others do not.)
>
> The message should always be displayed, regardless of
> #:print-build-trace?.

Fixed long ago, at least with the introduction of (guix status).  Closing!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-09 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-03  9:50 bug#24140: Substitute hash mismatches not properly reported Ludovic Courtès
2020-07-09 13:56 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).