unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Thompson <dthompson2@worcester.edu>
To: guix-devel@gnu.org
Subject: Invalid nar signature
Date: Sun, 14 Dec 2014 21:22:36 -0500	[thread overview]
Message-ID: <87zjapejo3.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> (raw)

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

             reply	other threads:[~2014-12-15  2:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-15  2:22 David Thompson [this message]
2014-12-15  2:33 ` Invalid nar signature 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zjapejo3.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me \
    --to=dthompson2@worcester.edu \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).