Subject: [bug#74481] [PATCH v2] import: go: Warn instead of error out when Git fails.

From: Ludovic Courtès <[email-masked]>
Date: Thu, 26 Dec 2024 22:14:41 +0100

Simon Tournier <[email-masked]> skribis:

> * guix/import/go.scm (git-checkout-hash): Return some hash although updating
> the cache fails.
>
> Change-Id: I87e7701023a5f76f5d1494827473616e6a1275aa

[...]

> +                  (catch 'git-error
> +                    (lambda ()
> +                      (update-cached-checkout url
> +                                              #:ref
> +                                              `(tag-or-commit . ,reference)))
> +                    (lambda (key err)
> +                      (warning (G_ "update-cached-checkout: ~s ~s~%") key err)

Rather something like:

  (warning (G_ "failed to check out ~s from Git repository at '~a': ~a~%")
           reference url (git-error-message err))

Apart from that LGTM!

Thanks,
Ludo’.