From: Simon Tournier <zimon.toutoune@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 74481@debbugs.gnu.org, Josselin Poiret <dev@jpoiret.xyz>,
Tobias Geerinckx-Rice <me@tobias.gr>,
Mathieu Othacehe <othacehe@gnu.org>,
Christopher Baines <guix@cbaines.net>
Subject: [bug#74481] [PATCH 1/2] git: Catch Git errors when updating cached checkout.
Date: Thu, 12 Dec 2024 13:04:08 +0100 [thread overview]
Message-ID: <CAJ3okZ00aNLAbA6_bJCxUkhYHq4y1J-qADtgX16wjNMW9bXfWQ@mail.gmail.com> (raw)
In-Reply-To: <87bjxhb0da.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1193 bytes --]
Hi Ludo,
On Thu, 12 Dec 2024 at 12:35, Ludovic Courtès <ludo@gnu.org> wrote:
> Sorry for not replynig earlier. I would avoid such a change: it changes
> the semantics of ‘resolve-reference’ in a non-trivial and hard-to-test
> way.
Could you explain more what you mean for "the semantics" of
'resolve-reference'?
> Instead, since the goal is to address a problem that’s specific to
> importers (or to one importer), I would suggest making a local change in
> the importer itself, or in code that is shared among importers only.
Well, from my understanding this suggestion is not possible because of the
way it's implemented. Or the importer needs a rewrite. The crash comes
from the call of 'update-cached-checkout' and it appears to me impossible
to catch the error at the level of the importer because it's too late.
If you think that's possible to have a local change somewhere in the
importers, please point me because I'm clueless. :-)
BTW, the bug of looking for an non-existent reference still remains. In
other words, all the calls to Guile-Git as 'object-lookup repository'
should be protected with some error-catch, IMHO.
Cheers,
simon
[-- Attachment #2: Type: text/html, Size: 1510 bytes --]
next prev parent reply other threads:[~2024-12-12 12:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-22 19:05 [bug#74481] [PATCH 0/2] Handle corner cases of 'guix import go' Simon Tournier
2024-11-22 19:09 ` [bug#74481] [PATCH 1/2] git: Catch Git errors when updating cached checkout Simon Tournier
2024-12-12 11:34 ` Ludovic Courtès
2024-12-12 12:04 ` Simon Tournier [this message]
2024-11-22 19:09 ` [bug#74481] [PATCH 2/2] import: go: Warn instead of error out when reference is missing Simon Tournier
2024-12-10 14:09 ` [bug#74481] [PATCH 0/2] Handle corner cases of 'guix import go' Simon Tournier
2024-12-10 18:40 ` Sharlatan Hellseher
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=CAJ3okZ00aNLAbA6_bJCxUkhYHq4y1J-qADtgX16wjNMW9bXfWQ@mail.gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=74481@debbugs.gnu.org \
--cc=dev@jpoiret.xyz \
--cc=guix@cbaines.net \
--cc=ludo@gnu.org \
--cc=me@tobias.gr \
--cc=othacehe@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).