GNU bug report logs - #47776
[PATCH] import: go: Fix goproxy option argument's format.

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-patches; Reported by: Z572 <873216071@HIDDEN>; Keywords: patch; dated Wed, 14 Apr 2021 15:01:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

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


Received: (at submit) by debbugs.gnu.org; 14 Apr 2021 15:00:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 14 11:00:43 2021
Received: from localhost ([127.0.0.1]:35500 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lWh0V-0004Yq-4S
	for submit <at> debbugs.gnu.org; Wed, 14 Apr 2021 11:00:43 -0400
Received: from lists.gnu.org ([209.51.188.17]:46828)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <873216071@HIDDEN>) id 1lWh0T-0004Yi-AI
 for submit <at> debbugs.gnu.org; Wed, 14 Apr 2021 11:00:42 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:49958)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <873216071@HIDDEN>) id 1lWh0S-0000nU-Th
 for guix-patches@HIDDEN; Wed, 14 Apr 2021 11:00:40 -0400
Received: from out162-62-57-137.mail.qq.com ([162.62.57.137]:46181 helo=qq.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <873216071@HIDDEN>) id 1lWh0I-0005qw-TW
 for guix-patches@HIDDEN; Wed, 14 Apr 2021 11:00:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512;
 t=1618412423; bh=w9HaCTrGHPynJdF47+TAYA5wNCN6UAdmApCq1plecVo=;
 h=From:To:Subject:Date;
 b=qosKZ72XfkduFrLQQ7L4urLgiIU4AygqoxNQwjHtKPHvncKmIdDOIAnssuASz1h6X
 gAXFl3/4OWzwX3uKlUlCj/JKw7cTeaYQ/Ia26urKHMVwmuG4AFliKoRgkIK1zR7FzU
 2OCTOaLWpP3zaPN871AV07OR5UOgq+2JE3+fcwAQ=
Received: from Z572 ([2409:8928:1254:28fc:3b2a:e107:5cc0:3538])
 by newxmesmtplogicsvrsza6.qq.com (NewEsmtp) with SMTP
 id 153A470; Wed, 14 Apr 2021 23:00:21 +0800
X-QQ-mid: xmsmtpt1618412421tkw9rdiv7
Message-ID: <tencent_6F94BF96A0D4FE6EDAA41A6541FE55EB380A@HIDDEN>
X-QQ-XMAILINFO: MwtEirz3hF6ozo7pwkXbXdN97xZk9xBwtsuczeVFUokRbUwce/12DvnpKckE/g
 vBZ7HtF05H6DDJuBiylsj/OQ8kpYmG4NcDKD+E/c3j+56vvjZhns2Oer3S7PkbPbrxKDlF8X8GAw
 aOA+NeLkXU0Un2dFznOuEqGawg1JcQoUR4P1OiCK9fHOtyq610fzIAayEM4E+CG3VyH74ke+DmxX
 BnZZUtWaErCfceAbqQZ34PF38Wa2rTxuVOVET9q8YvXucoI//YSzeGCagmvkT37rlkaHU1MPEj1n
 VEd/hxX/8hAgLxbY/lGY+Q8xTZqY8Fb2aiRt+JVvPPZ4sBLZZM09EH5zqPpWiK0belDMg45Vw0kU
 9kaWpIsBphuI6Y8GvWG3s9rO2RsxMyT2I8BZZmsfN/hR+frNqVmfXZtCTqGA1KhAC7k2XFwkGHqK
 kaJhqlwZVxS4eE81OLcQJRTkUjsMAnBsUKGSxBBfjPbJTTQt8w0LVeg3FEZxrjCGfVZMGAKqMqcM
 LJixsmTepgPTNNhcwnRGK6ww8ET/2gJJ+0RkjVHixHV4SLT8DU+QaZ2eLsz/KhYmbjtUxa+rsgT0
 gWlThO36eoukg9H2W6HE3OPepx0iwPgPp1+/qdLWExvJOOpa/oOKP62bVELMEXdwrcb17mahslft
 NJHjhUqPYiZOUPY8VZym/BXqhEDhlfKgX+Pfrpt+2fqS0dwD45gNN5ewWmCWwqjopk4HEa7ueZFQ
 7E
From: Z572 <873216071@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] import: go: Fix goproxy option argument's format.
Date: Wed, 14 Apr 2021 23:00:20 +0800
Message-ID: <878s5k9aij.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/x-patch; charset=utf-8
Content-Disposition: inline;
 filename=0001-import-go-Fix-goproxy-option-argument-s-format.patch
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=162.62.57.137; envelope-from=873216071@HIDDEN;
 helo=qq.com
X-Spam_score_int: -8
X-Spam_score: -0.9
X-Spam_bar: /
X-Spam_report: (-0.9 / 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,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RDNS_DYNAMIC=0.982,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.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.1 (--)

From e34f281d39f9b1e247fa649a15657da70f2b548d Mon Sep 17 00:00:00 2001
From: Zheng Junjie <873216071@HIDDEN>
Date: Wed, 14 Apr 2021 22:37:50 +0800
Subject: [PATCH] import: go: Fix goproxy option argument's format.

Commit a8b927a562 Added new procedure go-module-available-versions use
'string-append' to GOPROXY, but 'string->symbol' let GOPROXY is a symbol (it
must be a string), which would lead to wrong-type-arg errors in the
'string-append' procedure.

* guix/scripts/import/go.scm (%options)[goproxy]: Remove call to
'string->symbol'.
---
 guix/scripts/import/go.scm | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/guix/scripts/import/go.scm b/guix/scripts/import/go.scm
index 04b07f80cc..74e8e60cce 100644
--- a/guix/scripts/import/go.scm
+++ b/guix/scripts/import/go.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright =C2=A9 2020 Katherine Cox-Buday <cox.katherine.e@HIDDEN>
 ;;; Copyright =C2=A9 2021 Maxim Cournoyer <maxim.cournoyer@HIDDEN>
+;;; Copyright =C2=A9 2021 Zheng Junjie <873216071@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -68,9 +69,7 @@ that are not yet in Guix"))
                    (alist-cons 'recursive #t result)))
          (option '(#\p "goproxy") #t #f
                  (lambda (opt name arg result)
-                   (alist-cons 'goproxy
-                               (string->symbol arg)
-                               (alist-delete 'goproxy result))))
+                   (alist-cons 'goproxy arg (alist-delete 'goproxy result)=
)))
          (option '("pin-versions") #f #f
                  (lambda (opt name arg result)
                    (alist-cons 'pin-versions? #t result)))
--=20
2.31.1





Acknowledgement sent to Z572 <873216071@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#47776; Package guix-patches. 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: Wed, 14 Apr 2021 15:15:02 UTC

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