Subject: bug#52362: guix import go error

From: Stephen Paul Weber <[email-masked]>
Date: Tue, 11 Jan 2022 22:58:49 -0500

Ran into another like this today:

     guix import go github.com/aws/aws-sdk-go-v2/service/s3

Gives:

Backtrace:
           14 (primitive-load "/gnu/store/6rjb4c80l53n98cl6h0s3q1zmkg…")
In guix/ui.scm:
    2209:7 13 (run-guix . _)
   2172:10 12 (run-guix-command _ . _)
In guix/scripts/import.scm:
    124:11 11 (guix-import . _)
In ice-9/boot-9.scm:
   1752:10 10 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/import/go.scm:
    116:29  9 (_)
In ice-9/exceptions.scm:
    406:15  8 (go-module->guix-package* . _)
In ice-9/boot-9.scm:
   1752:10  7 (with-exception-handler _ _ #:unwind? _ # _)
In guix/import/go.scm:
    519:18  6 (go-module->guix-package "github.com/aws/aws-sdk-go-v2…" …)
In guix/git.scm:
     277:4  5 (update-cached-checkout _ #:ref _ #:recursive? _ # _ # _ …)
    266:18  4 (resolve _)
In git/reference.scm:
      60:8  3 (_ _ _)
In git/bindings.scm:
      77:2  2 (raise-git-error _)
In ice-9/boot-9.scm:
   1685:16  1 (raise-exception _ #:continuable? _)
   1683:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1683:16: In procedure raise-exception:
Git error: reference 'refs/tags/v1.23.0' not found