Subject: bug#69599: peercred package crashes guix go importer

From: Nathan Dehnel <[email-masked]>
Date: Wed, 6 Mar 2024 23:18:17 -0600

$ guix import go inet.af/peercred
Backtrace:
         18 (primitive-load "/home/nathan/.config/guix/current/bin/…")
In guix/ui.scm:
  2324:7 17 (run-guix . _)
 2287:10 16 (run-guix-command _ . _)
In guix/scripts/import.scm:
    80:6 15 (guix-import . _)
In ice-9/boot-9.scm:
 1752:10 14 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/import/go.scm:
  116:29 13 (_)
In ice-9/exceptions.scm:
  406:15 12 (go-module->guix-package* . _)
In ice-9/boot-9.scm:
 1752:10 11 (with-exception-handler _ _ #:unwind? _ # _)
In guix/import/go.scm:
  497:20 10 (go-module->guix-package "inet.af/peercred" #:goproxy _ …)
In guix/memoization.scm:
    98:0  9 (mproc "https://inet.af/peercred?go-get=1")
In unknown file:
          8 (_ #<procedure 7f007e85fd80 at guix/memoization.scm:17…> …)
In guix/import/go.scm:
  105:29  7 (_ . _)
In guix/http-client.scm:
  107:28  6 (http-fetch _ #:port _ #:text? _ #:buffered? _ # _ # _ # …)
In guix/build/download.scm:
   468:4  5 (open-connection-for-uri _ #:timeout _ # _)
  469:14  4 (thunk)
   396:8  3 (open-socket-for-uri _ #:timeout _)
In unknown file:
          2 (getaddrinfo "inet.af" "https" 32 #<undefined> #<undef…> …)
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:
In procedure getaddrinfo: System error

The package exists
https://pkg.go.dev/inet.af/peercred

guix b4107ca