GNU bug report logs - #52362
guix import go error

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Stephen Paul Weber <singpolyma@HIDDEN>; dated Tue, 7 Dec 2021 22:09:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 52362 <at> debbugs.gnu.org:


Received: (at 52362) by debbugs.gnu.org; 26 May 2023 11:25:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 26 07:25:35 2023
Received: from localhost ([127.0.0.1]:48989 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q2VZU-0008FB-Dl
	for submit <at> debbugs.gnu.org; Fri, 26 May 2023 07:25:35 -0400
Received: from mail-wr1-f48.google.com ([209.85.221.48]:40024)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1q2VZR-0008El-P2
 for 52362 <at> debbugs.gnu.org; Fri, 26 May 2023 07:25:22 -0400
Received: by mail-wr1-f48.google.com with SMTP id
 ffacd0b85a97d-3093aa2f2a5so79661f8f.0
 for <52362 <at> debbugs.gnu.org>; Fri, 26 May 2023 04:25:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1685100316; x=1687692316;
 h=content-transfer-encoding:mime-version:user-agent:message-id
 :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=A/sNmJKBiX1xmDyN7ivFs8KWGHRYwJI658QiUWFB89c=;
 b=CpduAy+TaAv1ZSj/yZF/1p5JNwHK3FCjQWozB4nvChOy26Vq9RdbQ3wXsPMehUqV9d
 cysNaV8KYcEtsyUOSAXhe/Ur3EPGendr5mdYpFWQIycIyHjOCjhcP0y3bYDwb+buifFY
 jwQJInD/JFAc/zlaLkC5uhYPUhDT321NSjtxJUSSBBfb71MapvoT+jQXLfqtmWTPzKRm
 JRZ8bEflip/w+cMV7pGfekhxeQhNl989zyaktEYWe4juMnehhtkhyQRu9Yyxicj1w6JS
 0MHuXIB/U+0fF1xt1H5UuG/at3ZHfOkY5AnWE35BZ2ou1j1RuK8Jh0wvh7mFLLRA3Eob
 QOvQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1685100316; x=1687692316;
 h=content-transfer-encoding:mime-version:user-agent:message-id
 :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=A/sNmJKBiX1xmDyN7ivFs8KWGHRYwJI658QiUWFB89c=;
 b=D3lZDfC1dkVOoPcXioTyuFpVjDthWpksvVGcQsM+h9BKZguc4aEijxBdKFevfVA7hE
 BgtXVHqmkPbCC9NCEOv0Dm9MxKNSds2vejHKwSjuKv6bDQXyMJ04NdGrU/N4Ug1Hl3fZ
 X39KGFb5cQE8rUGEyyh4JrAitjYPBUiP375W3uhFQVMYxpRsi3fox7AT7IV0tKfRao36
 kHvxtE9jMevZvWbMDafd+ZjYCyTAmvwHRKiWDe1Lwf0f+iuE2MXVTSrPwwAK14/qkIzd
 tfAkoaWQyn/mfiWfezXsAsHo7b81TvX8LQ82PgKq8zem1CUv8J1tIbZ9Pr4v9licRMlv
 DQzQ==
X-Gm-Message-State: AC+VfDz1ikweonshXSkg8QrSGCyIOvAOz+ZWRcJ71YqM0vU4a8g0oXQ2
 LYgS3c5sa2fa0FjttItLKu6vO7F2Nhs=
X-Google-Smtp-Source: ACHHUZ4ynDgifxzY7jMVXh6XsS4KV4ekqCLBDPMEKemPlMk7ZVa1K34tBf6Gfrx8KY8gdX6koAjxtg==
X-Received: by 2002:a5d:52c4:0:b0:2e4:c9ac:c492 with SMTP id
 r4-20020a5d52c4000000b002e4c9acc492mr1045069wrv.1.1685100315570; 
 Fri, 26 May 2023 04:25:15 -0700 (PDT)
Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id
 t14-20020a5d6a4e000000b0030add836194sm281691wrw.65.2023.05.26.04.25.14
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 26 May 2023 04:25:15 -0700 (PDT)
From: Simon Tournier <zimon.toutoune@HIDDEN>
To: Nicolas Goaziou <mail@HIDDEN>
Subject: Re: bug#52362: guix import go error
References: <Ya/bU8a43auuMRP0@HIDDEN>
 <875yoywnpx.fsf@HIDDEN> <87lehcwkyq.fsf_-_@HIDDEN>
 <87pm6ofdbc.fsf@HIDDEN>
Date: Thu, 25 May 2023 21:08:55 +0200
In-Reply-To: <87pm6ofdbc.fsf@HIDDEN> (Nicolas Goaziou's message of
 "Thu, 25 May 2023 20:58:31 +0200")
Message-ID: <87edn4ut2w.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 52362
Cc: 52362 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.2 (/)

Hi,

On jeu., 25 mai 2023 at 20:58, Nicolas Goaziou <mail@HIDDEN> wro=
te:

> Oops! For the record, I meant:
>
>    guix import go --recursive github.com/rclone/rclone

I get:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix import go --recursive github.com/rclone/rclone
following redirection to `https://github.com/storj/eventkit?go-get=3D1'...
following redirection to `https://goftp.io/server/?go-get=3D1'...
following redirection to `https://github.com/qingstor/qingstor-sdk-go?go-ge=
t=3D1'...
Backtrace:
In srfi/srfi-1.scm:
   586:29 19 (map1 _)
   586:29 18 (map1 _)
   586:29 17 (map1 _)
   586:29 16 (map1 _)
   586:29 15 (map1 _)
   586:29 14 (map1 _)
   586:29 13 (map1 _)
   586:29 12 (map1 _)
   586:29 11 (map1 _)
   586:17 10 (map1 (("github.com/yunify/qingstor-sdk-go/v3" #f) ("github.co=
m/youmark/pkcs8" #f) ("github.com/winfsp/cgofuse" #f) ("github.com/t3rm1=E2=
=80=A6" =E2=80=A6) =E2=80=A6))
In guix/import/utils.scm:
   630:33  9 (lookup-node "github.com/yunify/qingstor-sdk-go/v3" #f)
In guix/memoization.scm:
     98:0  8 (mproc "github.com/yunify/qingstor-sdk-go/v3" #:repo->guix-pac=
kage #<procedure mproc args> #:guix-name #<procedure go-module->guix-packag=
e-=E2=80=A6> =E2=80=A6)
In unknown file:
           7 (_ #<procedure 7f95e4ebcfc0 at guix/memoization.scm:179:32 ()>=
 #<procedure list _> (this is nothing))
In guix/import/go.scm:
   708:10  6 (_ _ #:version _ #:repo _)
In ice-9/exceptions.scm:
   406:15  5 (go-module->guix-package* . _)
In ice-9/boot-9.scm:
  1752:10  4 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In guix/import/go.scm:
   641:11  3 (go-module->guix-package "github.com/yunify/qingstor-sdk-go/v3=
" #:goproxy _ #:version _ #:pin-versions? _)
In unknown file:
           2 (substring "github.com/yunify/qingstor-sdk-go" 35 #<undefined>)
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:
Value out of range 0 to< 33: 35
--8<---------------cut here---------------end--------------->8---

which is a bug but another one. :-)

Well, we can keep this bug open in order to address this other bug or
close it =E2=80=93 since the issue with labels is done by Stephen=E2=80=99s=
 patch =E2=80=93 and
then open another one for tackle the issue above.

For instance, it reads,

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix import go github.com/yunify/qingstor-sdk-go
Backtrace:
In ice-9/boot-9.scm:
  1752:10 14 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
          13 (apply-smob/0 #<thunk 7fa1f7e7d2a0>)
In ice-9/boot-9.scm:
    724:2 12 (call-with-prompt _ _ #<procedure default-prompt-handler (k pr=
oc)>)
In ice-9/eval.scm:
    619:8 11 (_ #(#(#<directory (guile-user) 7fa1f7e82c80>)))
In guix/ui.scm:
   2300:7 10 (run-guix . _)
  2263:10  9 (run-guix-command _ . _)
In guix/scripts/import.scm:
    89:11  8 (guix-import . _)
In ice-9/boot-9.scm:
  1752:10  7 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In guix/scripts/import/go.scm:
   116:29  6 (_)
In ice-9/exceptions.scm:
   406:15  5 (go-module->guix-package* . _)
In ice-9/boot-9.scm:
  1752:10  4 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In guix/import/go.scm:
   598:11  3 (go-module->guix-package "github.com/yunify/qingstor-sdk-go" #=
:goproxy _ #:version _ #:pin-versions? _)
In unknown file:
           2 (regexp-exec #<regexp 7fa1ec976580> #f #<undefined> #<undefine=
d>)
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 regexp-exec: Wrong type argument in position 2 (expecting stri=
ng): #f
--8<---------------cut here---------------end--------------->8---


Cheers,
simon




Information forwarded to bug-guix@HIDDEN:
bug#52362; Package guix. Full text available.

Message received at 52362 <at> debbugs.gnu.org:


Received: (at 52362) by debbugs.gnu.org; 25 May 2023 18:58:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 25 14:58:47 2023
Received: from localhost ([127.0.0.1]:48149 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q2GAg-0003dg-RA
	for submit <at> debbugs.gnu.org; Thu, 25 May 2023 14:58:47 -0400
Received: from relay4-d.mail.gandi.net ([217.70.183.196]:49757)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1q2GAf-0003dI-0U
 for 52362 <at> debbugs.gnu.org; Thu, 25 May 2023 14:58:45 -0400
X-GND-Sasl: mail@HIDDEN
X-GND-Sasl: mail@HIDDEN
Received: by mail.gandi.net (Postfix) with ESMTPSA id 1FF31E0004;
 Thu, 25 May 2023 18:58:37 +0000 (UTC)
From: Nicolas Goaziou <mail@HIDDEN>
To: Simon Tournier <zimon.toutoune@HIDDEN>
Subject: Re: bug#52362: guix import go error
References: <Ya/bU8a43auuMRP0@HIDDEN>
 <875yoywnpx.fsf@HIDDEN> <87lehcwkyq.fsf_-_@HIDDEN>
Date: Thu, 25 May 2023 20:58:31 +0200
In-Reply-To: <87lehcwkyq.fsf_-_@HIDDEN> (Simon Tournier's message of "Thu, 
 25 May 2023 16:21:17 +0200")
Message-ID: <87pm6ofdbc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 52362
Cc: 52362 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hello,

Simon Tournier <zimon.toutoune@HIDDEN> writes:

> On mar., 01 mars 2022 at 00:55, Nicolas Goaziou <mail@HIDDEN> wrote:
>
>>   ./pre-inst-env guix import go --recursive rclone
>
> Using Guix 14c0380, I get:
>
> --8<---------------cut here---------------start------------->8---
> $ guix import go --recursive rclone
> guix import: warning: Failed to import package "rclone".
> reason: "https://proxy.golang.org/rclone/@v/list" could not be fetched: HTTP error 404 ("Not Found").
> This package and its dependencies won't be imported.
> --8<---------------cut here---------------end--------------->8---

Oops! For the record, I meant:

   guix import go --recursive github.com/rclone/rclone

Regards,
-- 
Nicolas Goaziou




Information forwarded to bug-guix@HIDDEN:
bug#52362; Package guix. Full text available.

Message received at 52362 <at> debbugs.gnu.org:


Received: (at 52362) by debbugs.gnu.org; 25 May 2023 18:33:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 25 14:33:59 2023
Received: from localhost ([127.0.0.1]:48103 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q2Fmh-0000E2-8X
	for submit <at> debbugs.gnu.org; Thu, 25 May 2023 14:33:59 -0400
Received: from mail-wm1-f43.google.com ([209.85.128.43]:41120)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1q2Fmb-0000D4-BM
 for 52362 <at> debbugs.gnu.org; Thu, 25 May 2023 14:33:53 -0400
Received: by mail-wm1-f43.google.com with SMTP id
 5b1f17b1804b1-3f60a7e132aso4784115e9.0
 for <52362 <at> debbugs.gnu.org>; Thu, 25 May 2023 11:33:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1685039627; x=1687631627;
 h=mime-version:user-agent:message-id:in-reply-to:date:references
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=D5nc0Mrl1h6jz4Y7PDUV5NlAgFEmHq5oowOP1YHWoRk=;
 b=k+ckFW04Cu5bxVM12N/3ftnOPI2kubd5OuYjAmOH2UqtCyhFF1b/vBDFlA23cv4GZa
 KZXg0Zy6UEzTWBoZPfGAWpVv/oRH0C4+f35NzRQm+1Ac3ywWCtoj2JzuBt+c6920yKgN
 sxjGfKcbaPDzb/3GVjgDX+GCLF3vALS7Ca+UKzDkcbsJvihPFeEtzC/pJc3FLQ60EQHD
 NbW282uvBvY7bcui5Y0fRbwEZGH4qC8XYkE4w/CMnT1pe3Bz+WnjBdyQtRQul9+vqI/X
 hloHsLGp+xuhUePvKlmRGKSR/Hfk2jTtkrKwIDytS0/2HBSU7mvy/ISYeMWRQ3Ei0w5T
 S+Dw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1685039627; x=1687631627;
 h=mime-version:user-agent:message-id:in-reply-to:date:references
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=D5nc0Mrl1h6jz4Y7PDUV5NlAgFEmHq5oowOP1YHWoRk=;
 b=i6OK4rGFYg1qoDIWOEMmE4kRbXdD3HaPqTQ3sT8eUybsSILQlhLnA8eKuW9tCZNUBC
 HMFAbU5dWwwR076splh9HmMXquz2PfO5sJY5rZ6dd5Ovho9WjUXIId6pVjCIRK8wccuW
 CYnpAQCJ1+So6jgVeprLIxB9oU8PLc6NRKnGXzibYTeq4/hJWzLy3lbHqt429j0SmupC
 bly+UZFiiFAQHvRh5gPvg0dPjKhZBCOeNcY+A1pY+/NeyXKLnNbCETJEkgOS1hGoX/h/
 g5MBrTHH6EYYzcceSj0jgYxHvPQgV7Ns00hLutm7IDkjaPYmffRq7hi3U397aeBolfCk
 cKyQ==
X-Gm-Message-State: AC+VfDzS40UHlYizGHNvXxlMUeg0XnSJGy675ZFDLAFO0DAiSaUMb24T
 Lq51eOQfQgVNA/lc+3HcgL7mnVSqkHY=
X-Google-Smtp-Source: ACHHUZ7IXNzDqDQWUel8Nc3Hc/cB9dmz7dIpv7PD+dXkyDO7TutieSlXajAcHCrWDPIqc9ba7YoXUw==
X-Received: by 2002:a05:600c:1c84:b0:3f6:c88:c318 with SMTP id
 k4-20020a05600c1c8400b003f60c88c318mr8453767wms.4.1685039627669; 
 Thu, 25 May 2023 11:33:47 -0700 (PDT)
Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id
 a15-20020a5d508f000000b002ceacff44c7sm2521106wrt.83.2023.05.25.11.33.47
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 25 May 2023 11:33:47 -0700 (PDT)
From: Simon Tournier <zimon.toutoune@HIDDEN>
To: Stephen Paul Weber <singpolyma@HIDDEN>
Subject: Re: bug#52362: guix import go error
References: <Ya/bU8a43auuMRP0@HIDDEN>
 <20220116033208.54370-1-singpolyma@HIDDEN>
Date: Thu, 25 May 2023 18:13:19 +0200
In-Reply-To: <20220116033208.54370-1-singpolyma@HIDDEN> (Stephen Paul
 Weber's message of "Sat, 15 Jan 2022 22:32:08 -0500")
Message-ID: <87bki8wfs0.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 52362
Cc: 52362 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

Sorry for the delay.  Thanks for this contribution.  I included this
patch in the series #63647 [1].  Therefore, I guess this bug report can
be close.  WDYT?

1: https://issues.guix.gnu.org/issue/63647#6


Cheers,
simon




Information forwarded to bug-guix@HIDDEN:
bug#52362; Package guix. Full text available.

Message received at 52362 <at> debbugs.gnu.org:


Received: (at 52362) by debbugs.gnu.org; 25 May 2023 18:33:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 25 14:33:59 2023
Received: from localhost ([127.0.0.1]:48101 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q2Fmg-0000E0-Qh
	for submit <at> debbugs.gnu.org; Thu, 25 May 2023 14:33:59 -0400
Received: from mail-wm1-f41.google.com ([209.85.128.41]:39404)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1q2Fma-0000Cz-9T
 for 52362 <at> debbugs.gnu.org; Thu, 25 May 2023 14:33:52 -0400
Received: by mail-wm1-f41.google.com with SMTP id
 5b1f17b1804b1-3f6148e501dso4213815e9.1
 for <52362 <at> debbugs.gnu.org>; Thu, 25 May 2023 11:33:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1685039626; x=1687631626;
 h=mime-version:user-agent:message-id:in-reply-to:date:references
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=Ul8N8L6BnhgPTwh0Yl9+jLnxZi2/j0OdP2iWTPnquUA=;
 b=soOF5Dn7keAKzITA2IM/ztvwy6aDKKkpin72Y8oaVlUUQkJh7rxwSFCXGMLFIdQiLr
 iL6UiEokxtaot2DdxoJZss+v3k/wnxh1oy1upb7m+TUy6gaYEgYaQAZ3ASk3XquTanI/
 +ktyCcMh01BljYbNorWuPgoZ5pz0OAVAylR4GF3YjUP1RPCgF1/ddHDhWRtJvKvZJohN
 1xVZbOObOY9OaYIPN0uRNbgJam4HkipHsZQS6Ie+7FREpNjvjBdMK0UxYdf2LrwFXeoW
 7chysv1KpYz2pcHaESDXJJFFNFSlmmgO3LFWaf16TBBZ94duXmykCPRM0vjgJ4YAgwMn
 HIPA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1685039626; x=1687631626;
 h=mime-version:user-agent:message-id:in-reply-to:date:references
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=Ul8N8L6BnhgPTwh0Yl9+jLnxZi2/j0OdP2iWTPnquUA=;
 b=S4qwsMtoN43pYtmB2BZ5t6JuXtNBV0vVgdpv8B3bml9cSDk+gGjblOcfYOWuHf9jZa
 7ERjbEhqxP2bo4uiHDhSM6zAPHKmlnrzc4yAFbieDlCMj2cA9MQELc/kvJht05woGEAm
 Pi5vUBBFXiWcF/KeVZ4pgSgp0B83SD+RQEjAj5PxgWcuUteFaa5pQ946BX8uIQ/N3Wp5
 2w7uZMaQr9ury9Z2AnqhhViGpvRZK8tg3Rwj010gF0Tp+qC984BA1gBwb3z595biQA7b
 ogW/xBr6xgnCN+Tqn4bzHJg9DH5O+/3XOQWClaX083uU/R9A1Z1+HP0Xv6VqUh4a8HPq
 wrxA==
X-Gm-Message-State: AC+VfDy13EtEItQd1dI+Dpmb4iN/CyTkRPp/zKHLqLXwo0XZE046hea5
 uXyTm65/rUpZ+6p+USCB5PBsztpKOU8=
X-Google-Smtp-Source: ACHHUZ7kSGDE/CCOmJYdkqu6BhE5yyq8A40EIW6e/wpq8Tyb5L9w9AK43p3pOS7sB38OTJ67qv86Lg==
X-Received: by 2002:a5d:4ccb:0:b0:30a:9930:9d03 with SMTP id
 c11-20020a5d4ccb000000b0030a99309d03mr123464wrt.2.1685039626418; 
 Thu, 25 May 2023 11:33:46 -0700 (PDT)
Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id
 e2-20020adffc42000000b002ff2c39d072sm2555735wrs.104.2023.05.25.11.33.46
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 25 May 2023 11:33:46 -0700 (PDT)
From: Simon Tournier <zimon.toutoune@HIDDEN>
To: Nicolas Goaziou <mail@HIDDEN>
Subject: Re: bug#52362: guix import go error
References: <Ya/bU8a43auuMRP0@HIDDEN>
 <875yoywnpx.fsf@HIDDEN>
Date: Thu, 25 May 2023 16:21:17 +0200
In-Reply-To: <875yoywnpx.fsf@HIDDEN> (Nicolas Goaziou's message of
 "Tue, 01 Mar 2022 00:55:22 +0100")
Message-ID: <87lehcwkyq.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 1.1 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Hi, On mar., 01 mars 2022 at 00:55, Nicolas Goaziou wrote:
 > ./pre-inst-env guix import go --recursive rclone 
 Content analysis details:   (1.1 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (zimon.toutoune[at]gmail.com)
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [209.85.128.41 listed in list.dnswl.org]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 1.1 DATE_IN_PAST_03_06     Date: is 3 to 6 hours before Received: date
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [209.85.128.41 listed in wl.mailspike.net]
X-Debbugs-Envelope-To: 52362
Cc: 52362 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.1 (/)

Hi,


On mar., 01 mars 2022 at 00:55, Nicolas Goaziou <mail@HIDDEN> wrote:

>   ./pre-inst-env guix import go --recursive rclone

Using Guix 14c0380, I get:

--8<---------------cut here---------------start------------->8---
$ guix import go --recursive rclone
guix import: warning: Failed to import package "rclone".
reason: "https://proxy.golang.org/rclone/@v/list" could not be fetched: HTTP error 404 ("Not Found").
This package and its dependencies won't be imported.
--8<---------------cut here---------------end--------------->8---

Moreover, instead of the patch in this thread, I am proposing #63647 [1]
which warns by handling the error, for instance, it displays using
another example from the thread,

--8<---------------cut here---------------start------------->8---
guix import: warning: Git error: reference 'refs/tags/v0.11.29' not found in https://github.com/Azure/go-autorest
(define-public go-github-com-azure-go-autorest-autorest
  (package
    (name "go-github-com-azure-go-autorest-autorest")
    (version "0.11.29")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/Azure/go-autorest")
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "0000000000000000000000000000000000000000000000000000"))))
    (build-system go-build-system)
    (arguments
     '(#:import-path "github.com/Azure/go-autorest/autorest"
       #:unpack-path "github.com/Azure/go-autorest"))
    (propagated-inputs `(("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
                         ("go-github-com-golang-jwt-jwt-v4" ,go-github-com-golang-jwt-jwt-v4)
                         ("go-github-com-azure-go-autorest-tracing" ,go-github-com-azure-go-autorest-tracing)
                         ("go-github-com-azure-go-autorest-logger" ,go-github-com-azure-go-autorest-logger)
                         ("go-github-com-azure-go-autorest-autorest-mocks" ,go-github-com-azure-go-autorest-autorest-mocks)
                         ("go-github-com-azure-go-autorest-autorest-adal" ,go-github-com-azure-go-autorest-autorest-adal)
                         ("go-github-com-azure-go-autorest" ,go-github-com-azure-go-autorest)))
    (home-page "https://github.com/Azure/go-autorest")
    (synopsis #f)
    (description
     "Package autorest implements an HTTP request pipeline suitable for use across
multiple go-routines and provides the shared routines relied on by AutoRest (see
@@url{https://github.com/Azure/autorest/,https://github.com/Azure/autorest/})
generated Go code.")
    (license license:asl2.0)))
--8<---------------cut here---------------end--------------->8---

Aside, indeed the proposed patch in this thread could also be merged.

1: https://issues.guix.gnu.org/issue/63647


Cheers,
simon




Information forwarded to bug-guix@HIDDEN:
bug#52362; Package guix. Full text available.

Message received at 52362 <at> debbugs.gnu.org:


Received: (at 52362) by debbugs.gnu.org; 13 Apr 2022 14:27:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 13 10:27:04 2022
Received: from localhost ([127.0.0.1]:53510 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nedxY-0000Jh-AX
	for submit <at> debbugs.gnu.org; Wed, 13 Apr 2022 10:27:04 -0400
Received: from mail-4323.proton.ch ([185.70.43.23]:25511)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <attila@HIDDEN>) id 1nedxW-0000JA-0W
 for 52362 <at> debbugs.gnu.org; Wed, 13 Apr 2022 10:27:03 -0400
Date: Wed, 13 Apr 2022 14:26:51 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name;
 s=protonmail3; t=1649860014;
 bh=BqfjEQhvgsilWio32K8TN+aKWIjHL0OG8ejyH8TrweE=;
 h=Date:To:From:Reply-To:Subject:Message-ID:From:To:Cc:Date:Subject:
 Reply-To:Feedback-ID:Message-ID;
 b=Sv95LMjj23EhCMj1s4+DZFCQW0tGavcfkeqbbrnum8ghZ8NFWZS2iIRncKjinAhsm
 lHsi0yFZzKbsq4oCegG7aLqFIQ0aeiGBgVWpT8DjYMhtTsvw9FVCxAyGXrh8cklQk2
 rRfpKEx38rd1BV77ns/aewWP+DAVUXukBRRPQ5XKJIFYXfdcC47X7P8tRgHD27QAq8
 Hn0Gkr8q2/aebt9jhoHN1JV80dziqq9Fd8VZA2paMGdH08kyY4aaQSxj1nLoWUi9Fz
 8SVsqb+UQzxIYUzzWpa2yLvseF5amgcG2gtOTKGtWjCBxjAG8gKC8JBNGrwYBkyeW1
 ef+th5iWtgnAg==
To: "52362 <at> debbugs.gnu.org" <52362 <at> debbugs.gnu.org>
From: Attila Lendvai <attila@HIDDEN>
Subject: another patchset
Message-ID: <y9U5agWrhqQDaR0EieoAUTleO_qyVlmgazVP0ilnWM18wIaWY1HKJPQM57N-aV6oA2RonxFQ59fTqY_uG-FHPJpsdS0nUBlxmaDa43XMR54=@lendvai.name>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 52362
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Attila Lendvai <attila@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

FYI,

i have extensive fixes to the go importer that i'm preparing for submission=
:

https://github.com/attila-lendvai-patches/guix/tree/import

it fixes this issue, and it can also recursively import rclone (and go-ethe=
reum for that matter):

./pre-inst-env guix import go --recursive github.com/rclone/rclone

emits 100+ packages.

unfortunately, it fails on/skips:

guix import go github.com/billziss-gh/cgofuse

i suspect that it's probably because that module is not adhering to the git=
 tag name rules.

--=C2=A0
- attila
PGP:=C2=A05D5F 45C7 DFCD 0A39




Information forwarded to bug-guix@HIDDEN:
bug#52362; Package guix. Full text available.

Message received at 52362 <at> debbugs.gnu.org:


Received: (at 52362) by debbugs.gnu.org; 28 Feb 2022 23:55:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 28 18:55:33 2022
Received: from localhost ([127.0.0.1]:34983 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nOprZ-0001LC-Gb
	for submit <at> debbugs.gnu.org; Mon, 28 Feb 2022 18:55:33 -0500
Received: from relay1-d.mail.gandi.net ([217.70.183.193]:42093)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1nOprW-0001Ky-N5
 for 52362 <at> debbugs.gnu.org; Mon, 28 Feb 2022 18:55:31 -0500
Received: (Authenticated sender: admin@HIDDEN)
 by mail.gandi.net (Postfix) with ESMTPSA id ECE44240006
 for <52362 <at> debbugs.gnu.org>; Mon, 28 Feb 2022 23:55:23 +0000 (UTC)
From: Nicolas Goaziou <mail@HIDDEN>
To: 52362 <at> debbugs.gnu.org
Subject: Re: [PATCH v3] guix: import: go: Use correct tag for go module in
 subdirectory.
Date: Tue, 01 Mar 2022 00:55:22 +0100
Message-ID: <875yoywnpx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 52362
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hello,

I tested v3 of this change, which looks great.

Unfortunately, when running

  ./pre-inst-env guix import go --recursive rclone

I get the following backtrace:

--8<---------------cut here---------------start------------->8---
following redirection to `https://github.com/qingstor/qingstor-sdk-go?go-ge=
t=3D1'...
Backtrace:
In ice-9/boot-9.scm:
  1752:10 19 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/import/go.scm:
   114:22 18 (_)
In guix/import/utils.scm:
   509:23 17 (recursive-import _ #:repo->guix-package _ #:guix-name _ =E2=
=80=A6)
In srfi/srfi-1.scm:
   586:29 16 (map1 _)
   586:29 15 (map1 _)
   586:29 14 (map1 _)
   586:29 13 (map1 _)
   586:29 12 (map1 _)
   586:29 11 (map1 _)
   586:17 10 (map1 (("github.com/yunify/qingstor-sdk-go/v3" #f) (=E2=80=A6)=
 =E2=80=A6))
In guix/import/utils.scm:
   497:33  9 (lookup-node "github.com/yunify/qingstor-sdk-go/v3" #f)
In guix/memoization.scm:
     98:0  8 (mproc "github.com/yunify/qingstor-sdk-go/v3" #:version =E2=80=
=A6)
In unknown file:
           7 (_ #<procedure 7f09be40e0c0 at guix/memoization.scm:17=E2=80=
=A6> =E2=80=A6)
           6 (_ #<procedure 7f09be40e080 at ice-9/eval.scm:330:13 ()> =E2=
=80=A6)
In ice-9/boot-9.scm:
    724:2  5 (call-with-prompt _ _ #<procedure 7f09be413e20 at ice-9=E2=80=
=A6>)
  1752:10  4 (with-exception-handler _ _ #:unwind? _ # _)
In ice-9/eval.scm:
   293:34  3 (_ #(#(#(#(#(#(#(#(#(#(#(#) =E2=80=A6) =E2=80=A6) =E2=80=A6) =
=E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6=
))
In unknown file:
           2 (substring "github.com/yunify/qingstor-sdk-go" 35 #<und=E2=80=
=A6>)
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:
Value out of range 0 to< 33: 35
--8<---------------cut here---------------end--------------->8---

Do you know why it is failing like this?

Regards,
--=20
Nicolas Goaziou




Information forwarded to bug-guix@HIDDEN:
bug#52362; Package guix. Full text available.

Message received at 52362 <at> debbugs.gnu.org:


Received: (at 52362) by debbugs.gnu.org; 16 Jan 2022 03:32:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 15 22:32:12 2022
Received: from localhost ([127.0.0.1]:42287 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8wH6-0008BM-9Y
	for submit <at> debbugs.gnu.org; Sat, 15 Jan 2022 22:32:12 -0500
Received: from singpolyma.net ([192.99.233.116]:50637)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <singpolyma@HIDDEN>) id 1n8wH4-0008BE-H2
 for 52362 <at> debbugs.gnu.org; Sat, 15 Jan 2022 22:32:11 -0500
Received: by singpolyma.net (Postfix, from userid 1000)
 id 73017486170A; Sun, 16 Jan 2022 03:32:09 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net;
 s=iweb; t=1642303929;
 bh=FSkLx1fN8s/nFB4UKO75BwD6oI/9agxrC6NEW+nRyR4=;
 h=From:To:Cc:Subject:Date:From;
 b=F04+O8qZH/IZz+sD9qh0cEHLfeG0h2kQKPl4zsGvjXcKF+OwA7MqckGcqYSX9CsJZ
 rbCInlmGA0WKvGS7dieEl8VngCV8/pOyCEtKc5xu6XZ81XTGy2IQAKUFx4t7/NbdSh
 yVOteN9jCd+r4nQvCAKJPNZckf97Yfh9hL3dXKVs=
From: Stephen Paul Weber <singpolyma@HIDDEN>
To: 52362 <at> debbugs.gnu.org
Subject: [PATCH v3] guix: import: go: Use correct tag for go module in
 subdirectory.
Date: Sat, 15 Jan 2022 22:32:08 -0500
Message-Id: <20220116033208.54370-1-singpolyma@HIDDEN>
X-Mailer: git-send-email 2.30.2
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 52362
Cc: Stephen Paul Weber <singpolyma@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

https://go.dev/ref/mod says a module in a subdirectory has a tag prefixed with
the subdirectory.

* guix/import/go.scm (version+subdirectory->tag-prefix): New variable.
(vcs->origin): New argument module-path-subdirectory.
---
 guix/import/go.scm | 36 +++++++++++++++++++++++++-----------
 1 file changed, 25 insertions(+), 11 deletions(-)

diff --git a/guix/import/go.scm b/guix/import/go.scm
index d00c13475a..f2ea9dbbae 100644
--- a/guix/import/go.scm
+++ b/guix/import/go.scm
@@ -521,28 +521,37 @@ tag."
                                           `(tag-or-commit . ,reference)))))
     (file-hash* checkout #:algorithm algorithm #:recursive? #true)))
 
-(define (vcs->origin vcs-type vcs-repo-url version)
+(define (version+subdirectory->tag-prefix subdirectory)
+  (if (string=? subdirectory "")
+      ""
+      (string-append (substring subdirectory 1) "/")))
+
+(define (vcs->origin vcs-type vcs-repo-url module-path-subdirectory version)
   "Generate the `origin' block of a package depending on what type of source
 control system is being used."
   (case vcs-type
     ((git)
-     (let ((plain-version? (string=? version (go-version->git-ref version)))
-           (v-prefixed?    (string-prefix? "v" version)))
+     (let* ((plain-version? (string=? version (go-version->git-ref version)))
+            (v-prefixed?    (string-prefix? "v" version))
+            (tag-prefix     (version+subdirectory->tag-prefix
+                             module-path-subdirectory))
+            (git-commit     (if plain-version?
+                                (string-append tag-prefix version)
+                                (go-version->git-ref version))))
        `(origin
           (method git-fetch)
           (uri (git-reference
                 (url ,vcs-repo-url)
-                ;; This is done because the version field of the package,
-                ;; which the generated quoted expression refers to, has been
-                ;; stripped of any 'v' prefixed.
                 (commit ,(if (and plain-version? v-prefixed?)
-                             '(string-append "v" version)
+                             (if (string=? module-path-subdirectory "")
+                                 '(string-append "v" version)
+                                 `(string-append ,tag-prefix "v" version))
                              '(go-version->git-ref version)))))
           (file-name (git-file-name name version))
           (sha256
            (base32
             ,(bytevector->nix-base32-string
-              (git-checkout-hash vcs-repo-url (go-version->git-ref version)
+              (git-checkout-hash vcs-repo-url git-commit
                                  (hash-algorithm sha256))))))))
     ((hg)
      `(origin
@@ -618,12 +627,17 @@ When VERSION is unspecified, the latest version available is used."
                            dependencies+versions
                            (map car dependencies+versions)))
          (module-path-sans-suffix
-          (match:prefix (string-match "([\\./]v[0-9]+)?$" module-path)))
+           (if (string-prefix? "gopkg.in" module-path)
+               module-path
+               (match:prefix (string-match "([\\./]v[0-9]+)?$" module-path))))
          (guix-name (go-module->guix-package-name module-path))
-         (root-module-path (module-path->repository-root module-path))
+         (root-module-path (module-path->repository-root module-path-sans-suffix))
          ;; The VCS type and URL are not included in goproxy information. For
          ;; this we need to fetch it from the official module page.
          (meta-data (fetch-module-meta-data root-module-path))
+         (module-path-subdirectory
+           (substring module-path-sans-suffix
+             (string-length (module-meta-import-prefix meta-data))))
          (vcs-type (module-meta-vcs meta-data))
          (vcs-repo-url (module-meta-data-repo-url meta-data goproxy))
          (synopsis (go-package-synopsis module-path))
@@ -634,7 +648,7 @@ When VERSION is unspecified, the latest version available is used."
         (name ,guix-name)
         (version ,(strip-v-prefix version*))
         (source
-         ,(vcs->origin vcs-type vcs-repo-url version*))
+         ,(vcs->origin vcs-type vcs-repo-url module-path-subdirectory version*))
         (build-system go-build-system)
         (arguments
          '(#:import-path ,module-path
-- 
2.30.2




Information forwarded to bug-guix@HIDDEN:
bug#52362; Package guix. Full text available.

Message received at 52362 <at> debbugs.gnu.org:


Received: (at 52362) by debbugs.gnu.org; 16 Jan 2022 02:56:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 15 21:56:42 2022
Received: from localhost ([127.0.0.1]:42275 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8vij-0007Fe-Tc
	for submit <at> debbugs.gnu.org; Sat, 15 Jan 2022 21:56:42 -0500
Received: from singpolyma.net ([192.99.233.116]:45363)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <singpolyma@HIDDEN>) id 1n8vii-0007FV-3I
 for 52362 <at> debbugs.gnu.org; Sat, 15 Jan 2022 21:56:40 -0500
Received: by singpolyma.net (Postfix, from userid 1000)
 id D6C89486170A; Sun, 16 Jan 2022 02:56:38 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net;
 s=iweb; t=1642301798;
 bh=LZ8UkRluAuqBnIAOet0pK2H0Lz4kf10mvwP9Sma2iuU=;
 h=From:To:Cc:Subject:Date:From;
 b=HL019qqmRC9qtZkcH0BfO8gzcF59cSHlEAtykTA9vk780NNGRiRqEAkdZMG5xxYoE
 4qVLbkm9M0n6vojp0kw8SW3XDgi4uJzpOzrhgNRD+HPsmrLYbSF+aseYCMqMgHhD9j
 +GuqyAb/UmRfRdNFQSMxt5FE5E+ZtfbqrB08T0uY=
From: Stephen Paul Weber <singpolyma@HIDDEN>
To: 52362 <at> debbugs.gnu.org
Subject: [PATCH v2] guix: import: go: Use correct tag for go module in
 subdirectory.
Date: Sat, 15 Jan 2022 21:56:34 -0500
Message-Id: <20220116025634.43833-1-singpolyma@HIDDEN>
X-Mailer: git-send-email 2.30.2
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 52362
Cc: Stephen Paul Weber <singpolyma@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

https://go.dev/ref/mod says a module in a subdirectory has a tag prefixed with
the subdirectory.

* guix/import/go.scm (version+subdirectory->tag-prefix): New variable.
(vcs->origin): New argument module-path-subdirectory.
---
 guix/import/go.scm | 35 ++++++++++++++++++++++++-----------
 1 file changed, 24 insertions(+), 11 deletions(-)

diff --git a/guix/import/go.scm b/guix/import/go.scm
index d00c13475a..b6f8686c0d 100644
--- a/guix/import/go.scm
+++ b/guix/import/go.scm
@@ -521,28 +521,37 @@ tag."
                                           `(tag-or-commit . ,reference)))))
     (file-hash* checkout #:algorithm algorithm #:recursive? #true)))
 
-(define (vcs->origin vcs-type vcs-repo-url version)
+(define (version+subdirectory->tag-prefix subdirectory)
+  (if (string=? subdirectory "")
+      ""
+      (string-append (substring subdirectory 1) "/")))
+
+(define (vcs->origin vcs-type vcs-repo-url module-path-subdirectory version)
   "Generate the `origin' block of a package depending on what type of source
 control system is being used."
   (case vcs-type
     ((git)
-     (let ((plain-version? (string=? version (go-version->git-ref version)))
-           (v-prefixed?    (string-prefix? "v" version)))
+     (let* ((plain-version? (string=? version (go-version->git-ref version)))
+            (v-prefixed?    (string-prefix? "v" version))
+            (tag-prefix     (version+subdirectory->tag-prefix
+                             module-path-subdirectory))
+            (git-commit     (if plain-version?
+                                (string-append tag-prefix version)
+                                (go-version->git-ref version))))
        `(origin
           (method git-fetch)
           (uri (git-reference
                 (url ,vcs-repo-url)
-                ;; This is done because the version field of the package,
-                ;; which the generated quoted expression refers to, has been
-                ;; stripped of any 'v' prefixed.
                 (commit ,(if (and plain-version? v-prefixed?)
-                             '(string-append "v" version)
+                             (if (string=? module-path-subdirectory "")
+                                 '(string-append "v" version)
+                                 `(string-append ,tag-prefix "v" version))
                              '(go-version->git-ref version)))))
           (file-name (git-file-name name version))
           (sha256
            (base32
             ,(bytevector->nix-base32-string
-              (git-checkout-hash vcs-repo-url (go-version->git-ref version)
+              (git-checkout-hash vcs-repo-url git-commit
                                  (hash-algorithm sha256))))))))
     ((hg)
      `(origin
@@ -618,9 +627,13 @@ When VERSION is unspecified, the latest version available is used."
                            dependencies+versions
                            (map car dependencies+versions)))
          (module-path-sans-suffix
-          (match:prefix (string-match "([\\./]v[0-9]+)?$" module-path)))
+           (if (string-prefix? "gopkg.in" module-path)
+               module-path
+               (match:prefix (string-match "([\\./]v[0-9]+)?$" module-path))))
          (guix-name (go-module->guix-package-name module-path))
-         (root-module-path (module-path->repository-root module-path))
+         (root-module-path (module-path->repository-root module-path-sans-suffix))
+         (module-path-subdirectory
+           (substring module-path-sans-suffix (string-length root-module-path)))
          ;; The VCS type and URL are not included in goproxy information. For
          ;; this we need to fetch it from the official module page.
          (meta-data (fetch-module-meta-data root-module-path))
@@ -634,7 +647,7 @@ When VERSION is unspecified, the latest version available is used."
         (name ,guix-name)
         (version ,(strip-v-prefix version*))
         (source
-         ,(vcs->origin vcs-type vcs-repo-url version*))
+         ,(vcs->origin vcs-type vcs-repo-url module-path-subdirectory version*))
         (build-system go-build-system)
         (arguments
          '(#:import-path ,module-path
-- 
2.30.2




Information forwarded to bug-guix@HIDDEN:
bug#52362; Package guix. Full text available.

Message received at 52362 <at> debbugs.gnu.org:


Received: (at 52362) by debbugs.gnu.org; 15 Jan 2022 01:56:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 14 20:56:09 2022
Received: from localhost ([127.0.0.1]:38652 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8YIb-00015w-JV
	for submit <at> debbugs.gnu.org; Fri, 14 Jan 2022 20:56:09 -0500
Received: from singpolyma.net ([192.99.233.116]:38539)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <singpolyma@HIDDEN>) id 1n8YIZ-00015n-J2
 for 52362 <at> debbugs.gnu.org; Fri, 14 Jan 2022 20:56:08 -0500
Received: by singpolyma.net (Postfix, from userid 1000)
 id 964864861709; Sat, 15 Jan 2022 01:56:06 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net;
 s=iweb; t=1642211766;
 bh=5Z1hqxu4k37j1O9/+3UBxuigNu69EcdzLE1GIC++tWA=;
 h=Date:From:To:Subject:References:In-Reply-To:From;
 b=TpVefCey+oaIJo6io0tdZov9xawrvm/unvadT1WQo4RNQuaco6tYQiVnga7P+tHKo
 oSmqk4FNe/c14o2eQPCxRvV7a3wBiKoYKJ/YsVwM23CkYrdFR7MP4JwmWCXn5jevMz
 nIIrMP1ouo4UPiwOzjEqMKu8rkN+cP8FOgo322GE=
Date: Fri, 14 Jan 2022 20:56:06 -0500
From: Stephen Paul Weber <singpolyma@HIDDEN>
To: 52362 <at> debbugs.gnu.org
Subject: Re: [PATCH] guix: import: go: Use correct tag for go module in
 subdirectory.
Message-ID: <YeIpthv5P/B5zTbG@HIDDEN>
References: <20220115014333.26372-1-singpolyma@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="HdtBVLSyYJViezKk"
Content-Disposition: inline
In-Reply-To: <20220115014333.26372-1-singpolyma@HIDDEN>
Jabber-ID: singpolyma@HIDDEN
OpenPGP: id=CE519CDE; url=https://singpolyma.net/public.asc
X-URL: https://singpolyma.net
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 52362
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


--HdtBVLSyYJViezKk
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline

Somebody claiming to be Stephen Paul Weber wrote:
>https://go.dev/ref/mod says a module in a subdirectory has a tag prefixed with
>the subdirectory.

Dang.  This patch as written causes import of guix import go
github.com/jackc/pgx/v4 to fail. The /v4 suffix in this case appears to refer to
a branch and not a subdirectory, but the syntax is identical?

--HdtBVLSyYJViezKk
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEWeaCw+rzmiEMpzU00RwpEc5RnN4FAmHiKbEACgkQ0RwpEc5R
nN4tCg//dGl3uOpdc5UE0atj0/rpUjsReDLJnPoDgA3McPh3ciAT8X8FS9RZF+6Y
M0wrIXqb3yRJzZ6PBjs68OiUZ1dBAseuxsFwzfi8DDF7dYlS20TQ8gh4eP2D54qy
AH9hiQccp/Emy7M0n93pMAD2+NBLNcGALxhBau5ZFwecGJEg3iSGhrGi6Enwpz7d
G9i/vv+ijzZU9jQXaJkpr7iaEMf4S3SUrv6jj4QvfsSwGxMijPK+7ugfzS9kbn0h
EFRBIvR1EF+JVGgPMsrzN8e56NQ7jKqWNZNLCJ3GUPefnyEVleYCmxC0HX5pwE7f
1rsaKFH8OGC4Vzj/r4JJ46yz3lNCdc/srxL6+tAkakrBC7JEhZrWpBesKEU67a/o
o3D7Sa6/6VuA4b2p4K4UyKyhTz7M6usTrXtyhfJYNXUbBrVSZH33z51oEyFX4UHU
2Bxp5G06F/jnBR20CjwUeLkGf4TkkajEORJn0y5qkkVJ9lsyQrML44Mz9S7j3f/o
HngQTG+WLOJaSnw7OB9+eD7wwRdeGbqf0iaJvYSnvJx4ns+mXHbWtsj0rrjQ5Z0c
qPWc38Goye92sH1JuGjcNslDzcLkZi9+mM40o5fI2kFhK62D/QWoJG3hvvj7YFQS
VvEy8hWKKd+zE16i9EwdPiynLZOMSICV2BdWyxSj3JP+h3OSRj0=
=JXfH
-----END PGP SIGNATURE-----

--HdtBVLSyYJViezKk--




Information forwarded to bug-guix@HIDDEN:
bug#52362; Package guix. Full text available.

Message received at 52362 <at> debbugs.gnu.org:


Received: (at 52362) by debbugs.gnu.org; 15 Jan 2022 01:43:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 14 20:43:42 2022
Received: from localhost ([127.0.0.1]:38639 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8Y6Y-0000j6-K2
	for submit <at> debbugs.gnu.org; Fri, 14 Jan 2022 20:43:42 -0500
Received: from singpolyma.net ([192.99.233.116]:39453)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <singpolyma@HIDDEN>) id 1n8Y6V-0000iy-Ry
 for 52362 <at> debbugs.gnu.org; Fri, 14 Jan 2022 20:43:41 -0500
Received: by singpolyma.net (Postfix, from userid 1000)
 id A2A024861709; Sat, 15 Jan 2022 01:43:38 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net;
 s=iweb; t=1642211018;
 bh=syFT3xXKEcqHmstrcM0dD1epJk6NKVWS4g9VfDQc61o=;
 h=From:To:Cc:Subject:Date:From;
 b=ebBl/jQDvcA5SfIhGup1xBaSbAr9XuJAltGJqyxETUmx02Ig9lBY9GsGsbMknPVv3
 +HjmUFDfMibtTfsL/BzYscekrJbsoei0ZPOdkLxy/BVM8Zxl+huxbtfIRUkDmTrqtE
 KmtM6kF5KBXCge03ySZrK13chkcv8TDL2x9ck1YY=
From: Stephen Paul Weber <singpolyma@HIDDEN>
To: 52362 <at> debbugs.gnu.org
Subject: [PATCH] guix: import: go: Use correct tag for go module in
 subdirectory.
Date: Fri, 14 Jan 2022 20:43:33 -0500
Message-Id: <20220115014333.26372-1-singpolyma@HIDDEN>
X-Mailer: git-send-email 2.30.2
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 52362
Cc: Stephen Paul Weber <singpolyma@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

https://go.dev/ref/mod says a module in a subdirectory has a tag prefixed with
the subdirectory.

* guix/import/go.scm (version+subdirectory->tag-name): New variable.
(vcs->origin): New argument module-path-subdirectory.
---
 guix/import/go.scm | 26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

diff --git a/guix/import/go.scm b/guix/import/go.scm
index d00c13475a..6fae1994b8 100644
--- a/guix/import/go.scm
+++ b/guix/import/go.scm
@@ -521,28 +521,30 @@ tag."
                                           `(tag-or-commit . ,reference)))))
     (file-hash* checkout #:algorithm algorithm #:recursive? #true)))
 
-(define (vcs->origin vcs-type vcs-repo-url version)
+(define (version+subdirectory->tag-name version subdirectory)
+  (if (string=? subdirectory "")
+      version
+      (string-append (substring subdirectory 1) "/" version)))
+
+(define (vcs->origin vcs-type vcs-repo-url module-path-subdirectory version)
   "Generate the `origin' block of a package depending on what type of source
 control system is being used."
   (case vcs-type
     ((git)
-     (let ((plain-version? (string=? version (go-version->git-ref version)))
-           (v-prefixed?    (string-prefix? "v" version)))
+     (let ((git-commit (if (string=? version (go-version->git-ref version))
+                           (version+subdirectory->tag-name
+                              version module-path-subdirectory)
+                           (go-version->git-ref version))))
        `(origin
           (method git-fetch)
           (uri (git-reference
                 (url ,vcs-repo-url)
-                ;; This is done because the version field of the package,
-                ;; which the generated quoted expression refers to, has been
-                ;; stripped of any 'v' prefixed.
-                (commit ,(if (and plain-version? v-prefixed?)
-                             '(string-append "v" version)
-                             '(go-version->git-ref version)))))
+                (commit ,git-commit)))
           (file-name (git-file-name name version))
           (sha256
            (base32
             ,(bytevector->nix-base32-string
-              (git-checkout-hash vcs-repo-url (go-version->git-ref version)
+              (git-checkout-hash vcs-repo-url git-commit
                                  (hash-algorithm sha256))))))))
     ((hg)
      `(origin
@@ -621,6 +623,8 @@ When VERSION is unspecified, the latest version available is used."
           (match:prefix (string-match "([\\./]v[0-9]+)?$" module-path)))
          (guix-name (go-module->guix-package-name module-path))
          (root-module-path (module-path->repository-root module-path))
+         (module-path-subdirectory
+           (substring module-path (string-length root-module-path)))
          ;; The VCS type and URL are not included in goproxy information. For
          ;; this we need to fetch it from the official module page.
          (meta-data (fetch-module-meta-data root-module-path))
@@ -634,7 +638,7 @@ When VERSION is unspecified, the latest version available is used."
         (name ,guix-name)
         (version ,(strip-v-prefix version*))
         (source
-         ,(vcs->origin vcs-type vcs-repo-url version*))
+         ,(vcs->origin vcs-type vcs-repo-url module-path-subdirectory version*))
         (build-system go-build-system)
         (arguments
          '(#:import-path ,module-path
-- 
2.30.2




Information forwarded to bug-guix@HIDDEN:
bug#52362; Package guix. Full text available.

Message received at 52362 <at> debbugs.gnu.org:


Received: (at 52362) by debbugs.gnu.org; 12 Jan 2022 04:28:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 11 23:28:21 2022
Received: from localhost ([127.0.0.1]:55971 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n7VFF-0000Tx-1V
	for submit <at> debbugs.gnu.org; Tue, 11 Jan 2022 23:28:21 -0500
Received: from singpolyma.net ([192.99.233.116]:53375)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <singpolyma@HIDDEN>) id 1n7VF7-0000Td-8A
 for 52362 <at> debbugs.gnu.org; Tue, 11 Jan 2022 23:28:19 -0500
Received: by singpolyma.net (Postfix, from userid 1000)
 id 4D1034861706; Wed, 12 Jan 2022 04:28:12 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net;
 s=iweb; t=1641961692;
 bh=SH/G15TZ//VljzXN8yAtm9jygkq0rCyw5QHtKU9KP5o=;
 h=Date:From:To:Subject:References:In-Reply-To:From;
 b=BdwzPhxpoJ+6Y59Yd987z1pOxmXYVZo8W8X+IoRfuGvd16G2plpCOibJzJFJeBNob
 CZovKNfUBDTsuCi5ISYjJ4660PSiBTWB9Tjnk1IfNcoQC7Wqwbg8g24e0CsAf4iKWL
 s++5TY2/as0u6h5YKUNPFa7nqpZ8NKNv0bd6n/nc=
Date: Tue, 11 Jan 2022 23:28:12 -0500
From: Stephen Paul Weber <singpolyma@HIDDEN>
To: 52362 <at> debbugs.gnu.org
Subject: Re: guix import go error
Message-ID: <Yd5Y3KcqyWg33n+H@HIDDEN>
References: <Yd5R+fEA+Czl6HwA@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="8RZ+8gMiYRXiLz18"
Content-Disposition: inline
In-Reply-To: <Yd5R+fEA+Czl6HwA@HIDDEN>
Jabber-ID: singpolyma@HIDDEN
OpenPGP: id=CE519CDE; url=https://singpolyma.net/public.asc
X-URL: https://singpolyma.net
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 52362
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


--8RZ+8gMiYRXiLz18
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline

Alright, I think I have found the issue.  https://go.dev/ref/mod says:

> If a module is defined in a subdirectory within the repository, that is,
> the module subdirectory portion of the module path is not empty, then each
> tag name must be prefixed with the module subdirectory, followed by a slash.
> For example, the module golang.org/x/tools/gopls is defined in the gopls
> subdirectory of the repository with root path golang.org/x/tools. The version
> v0.4.0 of that module must have the tag named gopls/v0.4.0 in that repository.

Right now the importer code assumes that either we have a pseudo version (and
thus can extract a raw commit hash) or else that the tag will be exactly
(string-append "v" version) but this does not take into account the rule about
subdirectory packages.

--8RZ+8gMiYRXiLz18
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEWeaCw+rzmiEMpzU00RwpEc5RnN4FAmHeWNYACgkQ0RwpEc5R
nN5g+Q/8DpO2RDwQqzRaiBnU7IZ5eqsvBXJG9cSBP0BRBQL9cmkHhGtp5TBYaUy4
h9YSN7NI3XMMmOXH3QMACNvRHblyjBuwe9GYqyu8G344rqKhmmWLY8FWNNOrLuJV
bDVGGEP4LM+0CevrmiIRQe8QqXdULjOD55UaSuREh7cU4k/U4INJ5GHRqVkiLI2e
uKUEgh7FijbDXwAduu/Ay88zclrJS3DZdMhDkydeGjvLbeveV77LSlyhVfVpScMA
froV5OPIfTTEseLvg2+MNB7/CzQFa49+fAcHvS2nsUz5pQhOaXMkg//5por/ToEG
Abw3+LWM51iFFkcqd9ZCPCYXXCCLLmps8orRaYAmso/Y+vD3YNo5XhVbnpW+W1Mm
j3E1fDpCVxvnIYJBZxtC0Cch4IEmnNVdN9RcEzbfwTtyJp/+BnKBpQOusD6LaaVB
mfHbC3qpzdnuxeo5OnKPryj/wEkoV0xvzyC2R5+LSL4KhxlYldJEsEEKDCW3LydJ
/j3C9eCwkRHlEIDdx9nSaLHINV/xaVHUyqxPLF33uvOtaR1PlRX/ZHIa+diPoT/Z
pVGvduSAtrvefcvEx7Z1YMhZUhHQyMrcL0YpPDgccMRssF+Btk1M0X6c9PaH0MpT
obcB4gMsLL6v9vsuZRAlM9b/96ake0Th3iMM3nNdvaJxZyJFPmI=
=TIPZ
-----END PGP SIGNATURE-----

--8RZ+8gMiYRXiLz18--




Information forwarded to bug-guix@HIDDEN:
bug#52362; Package guix. Full text available.

Message received at 52362 <at> debbugs.gnu.org:


Received: (at 52362) by debbugs.gnu.org; 12 Jan 2022 03:58:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 11 22:58:53 2022
Received: from localhost ([127.0.0.1]:55962 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n7Umj-0007qY-Bv
	for submit <at> debbugs.gnu.org; Tue, 11 Jan 2022 22:58:53 -0500
Received: from singpolyma.net ([192.99.233.116]:39073)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <singpolyma@HIDDEN>) id 1n7Umg-0007qN-Il
 for 52362 <at> debbugs.gnu.org; Tue, 11 Jan 2022 22:58:52 -0500
Received: by singpolyma.net (Postfix, from userid 1000)
 id 5E83B4861706; Wed, 12 Jan 2022 03:58:49 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net;
 s=iweb; t=1641959929;
 bh=8aEqMH9PQ6p5z9+BYCs7VfNsO4PSsrSLck5gBN6NmDU=;
 h=Date:From:To:Subject:From;
 b=Gdh3kPYrBuUzR0RQKY4bKuz/Prtfu5VgHohg3sEbB+ssrdtrD3f672mu3E7Xs9MIg
 RUKk421sig6nv/e+9slD/BCGsCqzx5dJsLkK3feN0mkrZV5ybtlvtfzbZUmggtaUld
 im596kDjRNOG+deembi7878T2K9MHKAEzEkQVtyg=
Date: Tue, 11 Jan 2022 22:58:49 -0500
From: Stephen Paul Weber <singpolyma@HIDDEN>
To: 52362 <at> debbugs.gnu.org
Subject: Re: guix import go error
Message-ID: <Yd5R+fEA+Czl6HwA@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="CSJtR2XzU49oiwCS"
Content-Disposition: inline
Jabber-ID: singpolyma@HIDDEN
OpenPGP: id=CE519CDE; url=https://singpolyma.net/public.asc
X-URL: https://singpolyma.net
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 52362
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


--CSJtR2XzU49oiwCS
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=E2=80=
=A6")
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=E2=80=
=A6" =E2=80=A6)
In guix/git.scm:
     277:4  5 (update-cached-checkout _ #:ref _ #:recursive? _ # _ # _ =E2=
=80=A6)
    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

--CSJtR2XzU49oiwCS
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEWeaCw+rzmiEMpzU00RwpEc5RnN4FAmHeUfQACgkQ0RwpEc5R
nN5Acg/8D9RyaNa5gjjfe6fFOPwzO0nm9ibT3dEYKaswGhp1FuKeevXPp3zmPUGu
6hXaTqfloWAMBsAbInvyJBR97KTRiVnzVvd+8MI/MXtCVwHPPdwMrCmAeFV+zyR/
4XhuTP/rYA+PktqpTX+0J7xTQH+gtB5xJMSCK37yp4wdIwVwX/KybKYMburweD2o
LHnixL8fnOCFfK+TkelKMab/GQb0EsCFO0MWLpxAnGho1abiwNnw11/0KiODHqy7
i1J/Hj97vczPoUMoaN+HvLcec+blGJcnMnHFAjPui//zJ3mG/gCbG+JAKInE1hhY
MrHNyyvQJRvVlMkDYQby9PeZEAtNabhGvufTJ2qJEXW41lF+WEoKoR9ynjbOZbRC
ZZJmhmFcPvIZoOBzd8L5ktK4Hdm4WEnsrDcp/YJ6h3WAUj9lzLPqImHFDeHD16pG
7VWhK2QZ6MwjdnMKSMiy+hst65lzknlwxRwvxhlYsdOC5gOveabAZzZbWPkgfI5c
zhC1fEZqlUrZkZU+Xnuij39M/W30fznMJRT7tiWVGc4jC5tFEw13O51Wzu07tPW3
baYr2Zq17/lw8r+6RGdFe9KcajEJSDFlgsJs6BAv012C8farpAYgI2BqqH/kzwqL
ZiO/fBgV2kE30mwFvR1/Dx6bTxP9m16DP8SInOETwjD5DJcnWp4=
=x2Hk
-----END PGP SIGNATURE-----

--CSJtR2XzU49oiwCS--




Information forwarded to bug-guix@HIDDEN:
bug#52362; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Dec 2021 22:08:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 07 17:08:33 2021
Received: from localhost ([127.0.0.1]:38899 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1muidV-0000uW-88
	for submit <at> debbugs.gnu.org; Tue, 07 Dec 2021 17:08:33 -0500
Received: from lists.gnu.org ([209.51.188.17]:58202)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <singpolyma@HIDDEN>) id 1muidS-0000uN-8V
 for submit <at> debbugs.gnu.org; Tue, 07 Dec 2021 17:08:32 -0500
Received: from eggs.gnu.org ([209.51.188.92]:60526)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <singpolyma@HIDDEN>)
 id 1muidR-0002WW-DN
 for bug-guix@HIDDEN; Tue, 07 Dec 2021 17:08:29 -0500
Received: from singpolyma.net ([192.99.233.116]:46751)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <singpolyma@HIDDEN>)
 id 1muidM-0001Yj-6u
 for bug-guix@HIDDEN; Tue, 07 Dec 2021 17:08:28 -0500
Received: by singpolyma.net (Postfix, from userid 1000)
 id F28F348616DC; Tue,  7 Dec 2021 22:08:19 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net;
 s=iweb; t=1638914899;
 bh=M0TPNTxXQNMhah+781yZDoT/XmHbYd3A88QcNdre/J8=;
 h=Date:From:To:Subject:From;
 b=IFrQXzRg71LoGOlUebVHSUjd0jbqU75HUTPgOU1mStaLSbep4XwUK35cmx+4jKF2G
 oJXh3OYQzL/equ5VxNvUcwDIGignl7/Y2QRB+Uwrn1saPF34S5rIi4jOx2NWOUeyLm
 rhl+ScBfA4mQUItqkWAS4N2ETBNk3P/GGGAKM8+k=
Date: Tue, 7 Dec 2021 17:08:19 -0500
From: Stephen Paul Weber <singpolyma@HIDDEN>
To: bug-guix@HIDDEN
Subject: guix import go error
Message-ID: <Ya/bU8a43auuMRP0@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="csPv73HV/Hmr9SVz"
Content-Disposition: inline
Jabber-ID: singpolyma@HIDDEN
OpenPGP: id=CE519CDE; url=https://singpolyma.net/public.asc
X-URL: https://singpolyma.net
Received-SPF: pass client-ip=192.99.233.116;
 envelope-from=singpolyma@HIDDEN; helo=singpolyma.net
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)


--csPv73HV/Hmr9SVz
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline

$ guix import go github.com/Azure/go-autorest/autorest

guix import: warning: Failed to import package "github.com/Azure/go-autorest/autorest".
reason: (#<<git-error> code: -3 message: "reference 'refs/tags/v0.11.22' not found" class: 4>).
guix import: error: failed to download meta-data for module 'github.com/Azure/go-autorest/autorest'.

Similarly:

$ guix import go github.com/Azure/go-autorest/autorest/adal

guix import: warning: Failed to import package "github.com/Azure/go-autorest/autorest/adal".
reason: (#<<git-error> code: -3 message: "reference 'refs/tags/v0.9.17' not found" class: 4>).
guix import: error: failed to download meta-data for module 'github.com/Azure/go-autorest/autorest/adal'.

And, from a different package but seems also similar:

$ guix import go cloud.google.com/go/storage

guix import: warning: Failed to import package "cloud.google.com/go/storage".
reason: (#<<git-error> code: -3 message: "reference 'refs/tags/v1.18.2' not found" class: 4>).
guix import: error: failed to download meta-data for module 'cloud.google.com/go/storage'.

--csPv73HV/Hmr9SVz
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEWeaCw+rzmiEMpzU00RwpEc5RnN4FAmGv208ACgkQ0RwpEc5R
nN5VWxAAiYeDjqejJ2X9XHJOWZVn+IIybHTe8euPpzOzF/SfufeGabNr9fy8J0wx
qpKZYNUH18S/3vyAqPILBgGodbv72aNtxRvbgz3PFLVY3bH7lh52/KeQlpI8E9Hu
aU3URzbtHC7HkTx0DwTzNgj09Ds9OfsZV6jAttTqn3jkZA2+deP6MtiYLooEsoln
5LhXIqHj+4BBah2w+ev/yqu57EOQDwCw3mHFeMGC2Qllez7laXVbo9WgiVokpULd
1cImRzTt3Aa017Fbdi/+IzEH2LlimcFL2FEKph0v3wTUpCk8EAmenhEVNOKpFAvN
bSIGbF3aGKEgT7Ajh3dUI4curp+cV/awKpmNF7+5BfVMzS41M3z9zWqovrxuisF0
0E5VAaUatNtnp2WESikRrSwcG2ivi1vCZR4nVm/KCKXm4m3xzqe2CcEjbr8AWyqL
T4b7iarraDmHjMNm6jmzFyRHuXR64CrqLgTjREho8Z7OBa+q09d6NNBryiLlZnCK
cjWO8aasQq18Om08QU7yISoHShhUTrWDhTsKJZH4R0UZ1+EZVXZst3rGbR/ISTU5
Tpwg2PoerOH8FEW3AsQ41jvByxuofCs0xcr3CCVrgzNVbFRbJVzMY01j79Xvn+K3
3ClJIQL4e8EViK6bUTNcTGRbmAofIvagrhgG4itMNTyFYjEB9mg=
=IRJz
-----END PGP SIGNATURE-----

--csPv73HV/Hmr9SVz--




Acknowledgement sent to Stephen Paul Weber <singpolyma@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#52362; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 26 May 2023 11:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.