unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#36439: Guix build throws the data away if hash mismatch
@ 2019-06-29 22:09 swedebugia
  2019-06-29 22:28 ` Ricardo Wurmus
  0 siblings, 1 reply; 2+ messages in thread
From: swedebugia @ 2019-06-29 22:09 UTC (permalink / raw)
  To: 36439

Hi

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.

I think that is a bug.

-- 
Cheers Swedebugia

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

* bug#36439: Guix build throws the data away if hash mismatch
  2019-06-29 22:09 bug#36439: Guix build throws the data away if hash mismatch swedebugia
@ 2019-06-29 22:28 ` Ricardo Wurmus
  0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Wurmus @ 2019-06-29 22:28 UTC (permalink / raw)
  To: swedebugia; +Cc: 36439-done


swedebugia <swedebugia@riseup.net> 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

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

end of thread, other threads:[~2019-06-29 22:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-29 22:09 bug#36439: Guix build throws the data away if hash mismatch swedebugia
2019-06-29 22:28 ` Ricardo Wurmus

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).