GNU bug report logs -
#44104
guix publish should publish public key
Previous Next
Reported by: "Amar M. Singh" <nly <at> disroot.org>
Date: Tue, 20 Oct 2020 20:06:02 UTC
Severity: normal
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi,
"Amar M. Singh" <nly <at> disroot.org> skribis:
>>From 554416649b7400d0bbe440016c6a6a7fed0d870a Mon Sep 17 00:00:00 2001
> From: Amar Singh <nly <at> disroot.org>
> Date: Wed, 21 Oct 2020 02:02:02 +0530
> Subject: [PATCH] guix publish: We provide signing key. Knock yourselves out!
>
> Best in industry.
>
> Signed-off-by: Amar Singh <nly <at> disroot.org>
> ---
> guix/scripts/publish.scm | 18 +++++++++++++++++-
> 1 file changed, 17 insertions(+), 1 deletion(-)
Great idea! Some comments:
> +++ b/guix/scripts/publish.scm
> @@ -1,5 +1,6 @@
> ;;; GNU Guix --- Functional package management for GNU
> ;;; Copyright © 2015 David Thompson <davet <at> gnu.org>
> +;;; Copyright (C) 2020 by Amar M. Singh <nly <at> disroot.org>
> ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo <at> gnu.org>
Please use the same format as the other lines.
> +(define (render-signing-key)
> + "Render signing key."
> + (let ((file "/etc/guix/signing-key.pub"))
> + (values `((content-type . (text/plain (charset . "UTF-8")))
> + (x-raw-file . ,file))
> + file)))
Use ‘%public-key-file’ (from (guix pki)) instead of ‘file’ here.
It would be great if you could add a test in ‘tests/publish.scm’ that
ensures GET /singing-key.pub returns 200 (you can use the
“/nix-cache-info” as a starting point and we can chat on IRC if you need
guidance.)
Bonus points if you can provide a commit log that follows our
conventions:
https://guix.gnu.org/manual/devel/en/html_node/Submitting-Patches.html
:-)
Could you send an updated patch?
Thanks,
Ludo’.
This bug report was last modified 4 years and 211 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.