all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Invalid nar signature
@ 2014-12-15  2:22 David Thompson
  2014-12-15  2:33 ` David Thompson
  2014-12-15 17:19 ` Ludovic Courtès
  0 siblings, 2 replies; 13+ messages in thread
From: David Thompson @ 2014-12-15  2:22 UTC (permalink / raw)
  To: guix-devel

Hello everyone,

While working on a new guix command, called 'guix publish', I've run
into a snag.  The archives I've exported via export-paths in the (guix
store) module are rejected by 'guix substitute-binary' due to the nar
signature being invalid.  The signature is a string containing
"nix-archive-1" at the head of the file.  I can clearly see that text
there, but the read-string operation that happens in the restore-file
procedure in (guix serialization) says otherwise.

The output of the following code in the context of the
(guix serialization) module is "\r", it should be "nix-archive-1":

  (with-input-from-file "some-nar-file"
    (lambda ()
      (read-string (current-input-port))))

Does anyone know what I'm missing here?  Thanks in advance.

-- 
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate

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

end of thread, other threads:[~2015-01-15 17:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-15  2:22 Invalid nar signature David Thompson
2014-12-15  2:33 ` David Thompson
2014-12-15 17:19 ` Ludovic Courtès
2014-12-15 20:08   ` Thompson, David
2014-12-15 21:20     ` Ludovic Courtès
2014-12-15 21:24       ` Thompson, David
2014-12-15 22:49       ` David Thompson
2014-12-16 17:07         ` Ludovic Courtès
2015-01-15  2:38           ` David Thompson
2015-01-15  9:51             ` Ludovic Courtès
2015-01-15 13:39               ` Thompson, David
2015-01-15 16:22                 ` Ludovic Courtès
2015-01-15 17:23                   ` Thompson, David

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.