Subject: Re: bug#36439: Guix build throws the data away if hash mismatch
From: Ricardo Wurmus <[email-masked]>
To: swedebugia <[email-masked]>
Cc: [email-masked]
Date: Sun, 30 Jun 2019 00:28:13 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

swedebugia <[email-masked]> writes:

> When I run guix download the data is saved to the store. When I run
> guix build without first running download and the hash mismatches it
> seemingly throws the data away.

This is not a bug.

The data that’s downloaded when you run “guix build” is not added to the
store because the hash mismatch indicates that it is corrupt.  Not
adding corrupt data (according to the user-specified hash) is the right
thing to do here.

If you want to add downloaded things to the store you should keep using
“guix download” and not “guix build”.

--
Ricardo