Subject: Go importer doesn't know MODULE/vX.Y version tags
From: Sharlatan Hellseher <[email-masked]>
To: [email-masked]
Date: Sat, 25 Jan 2025 13:31:10 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

The latest changes in go-importer have resolved it:

--8<---------------cut here---------------start------------->8---
~$ guix describe
Generation 72   Jan 24 2025 22:18:29    (current)
  guix ea7a6fa
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: ea7a6fa8c66ef3cfd0ccdec6c0a7a3e7ab3dfc9c

~$ guix import go cloud.google.com/go/longrunning
guix import: Importing package "cloud.google.com/go/longrunning"...
(define-public go-cloud-google-com-go-longrunning
  (package
    (name "go-cloud-google-com-go-longrunning")
    (version "0.6.4")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/googleapis/google-cloud-go")
             (commit (go-version->git-ref version
                                          #:subdir "longrunning"))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0w04dgxk0lx5k4s255ladf5w8n2nivvhp5vlyb2va96j5aa8j2q5"))))
    (build-system go-build-system)
    (arguments
     (list
      #:import-path "cloud.google.com/go/longrunning"
      #:unpack-path "cloud.google.com/go"))
    (propagated-inputs (list go-google-golang-org-protobuf
                             go-google-golang-org-grpc
                             go-google-golang-org-genproto-googleapis-rpc
                             go-google-golang-org-genproto-googleapis-api
                             go-google-golang-org-genproto
                             go-google-golang-org-api
                             go-github-com-googleapis-gax-go-v2
                             go-cloud-google-com-go))
    (home-page "https://cloud.google.com/go")
    (synopsis "longrunning")
    (description
     "Package longrunning supports Long Running Operations for the Google Cloud
Libraries.  See google.golang.org/genproto/googleapis/longrunning for its
service definition.")
    (license license:asl2.0)))
--8<---------------cut here---------------end--------------->8---

The recursive operation is tests against restic and it imported 400 new
packages after 1h.

Closing as resolved.

--
Thanks,
Oleg