From: Attila Lendvai <attila@lendvai.name>
To: 63972@debbugs.gnu.org
Subject: bug#63972: specifying a substitute server without adding its PGP key silently ignores it
Date: Fri, 09 Jun 2023 13:55:59 +0000 [thread overview]
Message-ID: <8Hk2ICrGGiH17DRgfVoPUV-zG47yBPXmAUXfHhSHyz7ditGn3Mt0ZM94NyNkwC8W1JsOJGExU6JesEvK9lq6bzjsx7OWu4UrB_TJBmvdlQo=@lendvai.name> (raw)
i've installed a new guix, and at the first `guix system reconfigure` i specified a substitute server using --substitute-urls for That Other Channel. i had to do this, because the config.scm that contains the substitute specification is yet to be applied.
it didn't work. it prints everything as usual, including the 100% message for that substitute server, but it starts to build packages locally for which substitutes are available. i haven't noticed any indication that there's a problem with any of the substitute servers.
once i've downloaded the .pub and i finally did the right incantation (sudo guix archive --authorize < signing-key.pub), then it started to download the substitutes as i expected.
i would much prefer a behavior where a "cryptyc" exception and backtrace is printed by a toplevel error handler. it has cost me about an hour of my life.
i'd suggest the following general strategy for the entire codebase in general:
throw exceptions, and let them fly all the way up to the toplevel error handler that should print it with a backtrace. this should be the baseline, and only then start adding very specific exception handlers to print friendly and localizable error messages for various situations, and only ever swallow exceptions when it's really justified. e.g. a file-not-found error in an ensure-file-deleted function.
--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“Civilization is in a race between education and catastrophe. Let us learn the truth and spread it as far and wide as our circumstances allow. For the truth is the greatest weapon we have.”
— H.G. Wells (1866–1946)
next reply other threads:[~2023-06-09 14:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-09 13:55 Attila Lendvai [this message]
2023-06-09 14:20 ` bug#63972: specifying a substitute server without adding its PGP key silently ignores it Ludovic Courtès
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='8Hk2ICrGGiH17DRgfVoPUV-zG47yBPXmAUXfHhSHyz7ditGn3Mt0ZM94NyNkwC8W1JsOJGExU6JesEvK9lq6bzjsx7OWu4UrB_TJBmvdlQo=@lendvai.name' \
--to=attila@lendvai.name \
--cc=63972@debbugs.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 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.