From unknown Sat Aug 09 15:54:16 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#49228 <49228@debbugs.gnu.org> To: bug#49228 <49228@debbugs.gnu.org> Subject: Status: guix import go fails when module does not have a documenation on pkg.go.dev Reply-To: bug#49228 <49228@debbugs.gnu.org> Date: Sat, 09 Aug 2025 22:54:16 +0000 retitle 49228 guix import go fails when module does not have a documenation= on pkg.go.dev reassign 49228 guix submitter 49228 Bj=C3=B6rn H=C3=B6fling severity 49228 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 25 18:31:01 2021 Received: (at submit) by debbugs.gnu.org; 25 Jun 2021 22:31:01 +0000 Received: from localhost ([127.0.0.1]:46911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwuLl-0002tJ-At for submit@debbugs.gnu.org; Fri, 25 Jun 2021 18:31:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:33944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwuLi-0002t5-SW for submit@debbugs.gnu.org; Fri, 25 Jun 2021 18:31:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwuLi-0003sv-LV for bug-guix@gnu.org; Fri, 25 Jun 2021 18:30:58 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:50640 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwuLg-0005MB-Jv for bug-guix@gnu.org; Fri, 25 Jun 2021 18:30:58 -0400 Received: from alma-ubu.fritz.box (pd951f819.dip0.t-ipconnect.de [217.81.248.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 2D9613FA0F for ; Sat, 26 Jun 2021 00:30:52 +0200 (CEST) Date: Sat, 26 Jun 2021 00:30:47 +0200 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= To: Subject: guix import go fails when module does not have a documenation on pkg.go.dev Message-ID: <20210626003047.4eb8c995@alma-ubu.fritz.box> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/1Yk65TNvnBHoA=D.NJ07aJR"; protocol="application/pgp-signature"; micalg=pgp-sha512 Received-SPF: none client-ip=83.151.27.109; envelope-from=bjoern.hoefling@bjoernhoefling.de; helo=bjoernhoefling.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.399, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --Sig_/1Yk65TNvnBHoA=D.NJ07aJR Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable $ ./pre-inst-env guix import go github.com/caspr-io/yamlpath=20 go-module->guix-package module-path: github.com/caspr-io/yamlpath Backtrace: In ice-9/boot-9.scm: 1752:10 8 (with-exception-handler _ _ #:unwind? _ # _) In unknown file: 7 (apply-smob/0 #) In ice-9/boot-9.scm: 724:2 6 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 5 (_ #(#(#))) In guix/ui.scm: 2147:12 4 (run-guix-command _ . _) In guix/scripts/import.scm: 120:11 3 (guix-import . _) In guix/scripts/import/go.scm: 118:27 2 (guix-import-go . _) In ice-9/eval.scm: 293:34 1 (_ #(#(#(#(#(#(#(#(#(#(#(?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?)) 619:8 0 (_ #(#(# #f))) ice-9/eval.scm:619:8: Throw to key `match-error' with args `("match" "no ma= tching pattern" #f)'. If you look at the page https://pkg.go.dev/github.com/caspr-io/yamlpath It has no Description, because the site cannot parse license information correctly and thus conservatively does not display any info. Can be trivially fixed with this: diff --git a/guix/import/go.scm b/guix/import/go.scm index d110954664..10095b9d24 100644 --- a/guix/import/go.scm +++ b/guix/import/go.scm @@ -190,6 +194,7 @@ e.g. \"google.golang.org/protobuf/proto\"." (first description)))) (match description* (() #f) ;nothing selected + (#f #f) =20 Hope this is independent of the other go-importer-bugs we have, like: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D49202 http://issues.guix.gnu.org/issue/45984 Additionally, it would be nice if the go-module->guix-package would print out the module it would fetch next (like I did above). Then the broken module would be easier to find in recursive mode. Bj=C3=B6rn --Sig_/1Yk65TNvnBHoA=D.NJ07aJR Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EAREKAB0WIQQiGUP0np8nb5SZM4K/KGy2WT5f/QUCYNZZFwAKCRC/KGy2WT5f /VYvAKCaS5UsDih4IRJWARU7MHUBPMRIGQCdGdDoZ0VCaFNiUZEaF8lJs/AI0Wg= =a9GC -----END PGP SIGNATURE----- --Sig_/1Yk65TNvnBHoA=D.NJ07aJR-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 25 21:18:13 2021 Received: (at 49228) by debbugs.gnu.org; 26 Jun 2021 01:18:13 +0000 Received: from localhost ([127.0.0.1]:46956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwwxY-0000eg-OT for submit@debbugs.gnu.org; Fri, 25 Jun 2021 21:18:12 -0400 Received: from out2.migadu.com ([188.165.223.204]:52936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwwxV-0000eP-Mr for 49228@debbugs.gnu.org; Fri, 25 Jun 2021 21:18:11 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1624670287; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gr8BPNosGr8yFifRQX0n6Py5YLqwPiqgpRbaE9JQwf0=; b=fyvsf6ApfjgAgQWj98IKRYbt6nIBLNF6L0TwKNdQnL6IqIGOwVxmkfn+TieKqW71QBQgT9 uwa03KKNFswL7mj5fDEtLmK2Gy3+p3e6eadMZYL1ZRHMXv8QJOKQubBELzDxnXUf77A66U 5D0kwB/a8BkVKBaiC/qrQdboAnTyVZk= From: Sarah Morgensen To: =?utf-8?Q?Bj=C3=B6rn_H=C3=B6fling?= Subject: Re: bug#49228: guix import go fails when module does not have a documenation on pkg.go.dev References: <20210626003047.4eb8c995@alma-ubu.fritz.box> Date: Fri, 25 Jun 2021 18:18:04 -0700 In-Reply-To: <20210626003047.4eb8c995@alma-ubu.fritz.box> (=?utf-8?Q?=22Bj?= =?utf-8?Q?=C3=B6rn_H=C3=B6fling=22's?= message of "Sat, 26 Jun 2021 00:30:47 +0200") Message-ID: <86eecp77ar.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: iskarian@mgsn.dev X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49228 Cc: 49228@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Thanks for the report. Bj=C3=B6rn H=C3=B6fling writes: > $ ./pre-inst-env guix import go github.com/caspr-io/yamlpath=20 > [...] > ice-9/eval.scm:619:8: Throw to key `match-error' with args `("match" "no = matching pattern" #f)'. > > If you look at the page > > https://pkg.go.dev/github.com/caspr-io/yamlpath > > It has no Description, because the site cannot parse license > information correctly and thus conservatively does not display any info. There is currently a patch for this (mine; though I could have named it better, I suppose): https://issues.guix.gnu.org/49200 > Additionally, it would be nice if the go-module->guix-package would > print out the module it would fetch next (like I did above). Then the > broken module would be easier to find in recursive mode. Error reporting in the importers is currently pretty inconsistent and could use a lot of improvement. You might be interested in taking a look at the PATCH v3 in which somewhat addresses this. Comments are always welcome! :) Sarah From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 28 02:58:31 2021 Received: (at 49228-done) by debbugs.gnu.org; 28 Jun 2021 06:58:31 +0000 Received: from localhost ([127.0.0.1]:50801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxlDy-0001I5-T9 for submit@debbugs.gnu.org; Mon, 28 Jun 2021 02:58:31 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:37362 helo=bjoernhoefling.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxlDx-0001Hx-FQ for 49228-done@debbugs.gnu.org; Mon, 28 Jun 2021 02:58:29 -0400 Received: from alma-ubu.fritz.box (p508acf09.dip0.t-ipconnect.de [80.138.207.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id D45ED3F946; Mon, 28 Jun 2021 08:58:28 +0200 (CEST) Date: Mon, 28 Jun 2021 08:58:27 +0200 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= To: Sarah Morgensen Subject: Re: bug#49228: guix import go fails when module does not have a documenation on pkg.go.dev Message-ID: <20210628085827.6e89f13f@alma-ubu.fritz.box> In-Reply-To: <86eecp77ar.fsf@mgsn.dev> References: <20210626003047.4eb8c995@alma-ubu.fritz.box> <86eecp77ar.fsf@mgsn.dev> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/QuY1AMIVJaCDJeOUs/lMJuN"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 49228-done Cc: 49228-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) --Sig_/QuY1AMIVJaCDJeOUs/lMJuN Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Sarah, On Fri, 25 Jun 2021 18:18:04 -0700 Sarah Morgensen wrote: > There is currently a patch for this (mine; though I could have named > it better, I suppose): >=20 > https://issues.guix.gnu.org/49200 Nice coincident :-) I pushed your patch as 9d9152425e96c408357d0f4961767a5c08076c13 Thanks. =20 > > Additionally, it would be nice if the go-module->guix-package would > > print out the module it would fetch next (like I did above). Then > > the broken module would be easier to find in recursive mode. =20 >=20 > Error reporting in the importers is currently pretty inconsistent and > could use a lot of improvement. You might be interested in taking a > look at the PATCH v3 in which > somewhat addresses this. Comments are always welcome! :) Good to know. I will have a look at these patches the next days/weeks. Bj=C3=B6rn --Sig_/QuY1AMIVJaCDJeOUs/lMJuN Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EAREKAB0WIQQiGUP0np8nb5SZM4K/KGy2WT5f/QUCYNlzEwAKCRC/KGy2WT5f /ewgAKC7JLj4KxryHIXcdh9h9CcNA5iSrwCfeQhdgYttP89nYV+VVXAWGDTJ/0A= =XkKh -----END PGP SIGNATURE----- --Sig_/QuY1AMIVJaCDJeOUs/lMJuN-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 28 12:24:37 2021 Received: (at 49228) by debbugs.gnu.org; 28 Jun 2021 16:24:37 +0000 Received: from localhost ([127.0.0.1]:52340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxu3p-0005d2-A8 for submit@debbugs.gnu.org; Mon, 28 Jun 2021 12:24:37 -0400 Received: from mail-qk1-f177.google.com ([209.85.222.177]:37717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxu3k-0005ch-N0; Mon, 28 Jun 2021 12:24:35 -0400 Received: by mail-qk1-f177.google.com with SMTP id z3so1557487qkl.4; Mon, 28 Jun 2021 09:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=laB5VIbc4TwK+wjksgTJzEDdyyJCN0qA/161BnC9sLU=; b=YrLgn5nH4Z7zeIoY5hbUCyYrsdn2tGKkDp4PIXjfpKzS70OYFnBQm3rlNU34sFEQM5 /frytczKXxEjSXH0SBLB7xKaOe5OPxjbx4g2B7HaueZ/u6gnm9HHaVucwhjMW+02p+TB PqBAe3GrSX7R1hdVZqaS5PlTe4B6idHSM0ENaNH5kBGn532ehidbf91Dgj/+w0CT4PiH QYNbyfzje1WmiAlpnxRlVzn8nlGGQtA3MGE2r8BBk3a2NZ1hUW9FKivsVJvi7JPt3RAq dHJal9X61aYz1TP5FqXOwjtAzBqQzUBI1SUV1K7H0Gtv/0zeSHz6ozDBzOkjlP/9Pw/k 8epg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=laB5VIbc4TwK+wjksgTJzEDdyyJCN0qA/161BnC9sLU=; b=XijTppLm4XGY6T+lDrmB39wLdpeITKC2XTz/7XEe0EjrIW+4KE/juq5eRoShRE9CBL bEP8zyvYxDPzYHtWt722JwpBsXeSeKjszsKB7U4K+XYsYqSdcpCxsc3N6NSQ+06ONqpz oyM5HxQW0tcA/iHD4aquZIxyz9PNgUgX8kGDM5+2/bsNMnykLmh7yq9E9laJOjEenWZ0 wOXQD/U/PvmpsfkmpqL+uf8Qn2aCIfzX3xctpKlesT5m6obLFzrS6AG/TTBSUAPRer6I 2s2wuD454Hcnf8xfAFlNlu9HrMwyFiM5cgj84dZSXYXpIEHWeIZRY5mPG4iwUf3fS48Q PYlg== X-Gm-Message-State: AOAM532BVmRddIMaywAehMHo5R89mWRvvOw5H/KWVcTCtJ7tYT1fTMYU /cp5tiwaoqoZSSc8fODAZB4ZNc8Kh0uebrQdcfFJho78nBs= X-Google-Smtp-Source: ABdhPJxkv5SS1WcSe7oimEmRp2iqmtITal4FCnGE02cZy0VoiHT3+K/fUqubcykfYhovDg++0n4KiX2bhjD9e8qxuCo= X-Received: by 2002:a05:620a:1317:: with SMTP id o23mr16446876qkj.304.1624897467214; Mon, 28 Jun 2021 09:24:27 -0700 (PDT) MIME-Version: 1.0 References: <20210626003047.4eb8c995@alma-ubu.fritz.box> <86eecp77ar.fsf@mgsn.dev> <20210628085827.6e89f13f@alma-ubu.fritz.box> In-Reply-To: <20210628085827.6e89f13f@alma-ubu.fritz.box> From: zimoun Date: Mon, 28 Jun 2021 18:24:16 +0200 Message-ID: Subject: Re: bug#49228: guix import go fails when module does not have a documenation on pkg.go.dev To: 49228@debbugs.gnu.org, =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 2.0 (++) 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 Mon, 28 Jun 2021 at 08:59, Björn Höfling wrote: > I pushed your patch as > > 9d9152425e96c408357d0f4961767a5c08076c13 Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (zimon.toutoune[at]gmail.com) -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.222.177 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.222.177 listed in list.dnswl.org] X-Debbugs-Envelope-To: 49228 Cc: 49228-done@debbugs.gnu.org, Sarah Morgensen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Hi, On Mon, 28 Jun 2021 at 08:59, Bj=C3=B6rn H=C3=B6fling wrote: > I pushed your patch as > > 9d9152425e96c408357d0f4961767a5c08076c13 Here, there is a tiny typo. :-) --8<---------------cut here---------------start------------->8--- ;;; Copyright =C2=A9 2021 Ludovic Court=C3=A8s ;;; Copyright =C2=A9 2021 Xinglu Chen +;; Copyright =C2=A9 2021 Sarah Morgensen ;;; ;;; This file is part of GNU Guix. --8<---------------cut here---------------end--------------->8--- > > > Additionally, it would be nice if the go-module->guix-package would > > > print out the module it would fetch next (like I did above). Then > > > the broken module would be easier to find in recursive mode. > > > > Error reporting in the importers is currently pretty inconsistent and > > could use a lot of improvement. You might be interested in taking a > > look at the PATCH v3 in which > > somewhat addresses this. Comments are always welcome! :) > > Good to know. I will have a look at these patches the next days/weeks. If v4 is good enough to be merged, then feel free to push it. :-) Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 30 18:16:50 2021 Received: (at 49228) by debbugs.gnu.org; 30 Jun 2021 22:16:50 +0000 Received: from localhost ([127.0.0.1]:59016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyiVm-0007G3-18 for submit@debbugs.gnu.org; Wed, 30 Jun 2021 18:16:50 -0400 Received: from mx1.riseup.net ([198.252.153.129]:54868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyiVc-0007FG-Gr for 49228@debbugs.gnu.org; Wed, 30 Jun 2021 18:16:48 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4GFbKb1Qd4zF494; Wed, 30 Jun 2021 15:16:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1625091395; bh=qTzdnxV2UJEGl8CHYEuLtWgOBcrx77W4bPPnwFSn7ew=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CKNlMug9PBmmmbS3rAEmm0hrSq6G8wNHMSnZQbyBlDGSj38htNT7BHc4VxinK5D+t N//7xgU/5MTBk1Xr+1oiv4LU4KOLzvl7pA4Ws3+z3BURgL/p1NHPj7K2XLs9x9fnly rtnBpIGVUfa9qZTy/JFIQ1upK668ya5xoYWNC4dM= X-Riseup-User-ID: 82360A6F0C9742510CF2FFB6027137650CFA433C97403D11D6BA60FE0B756510 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4GFbKZ2J0Kz5vkx; Wed, 30 Jun 2021 15:16:33 -0700 (PDT) Date: Wed, 30 Jun 2021 23:20:05 +0200 From: raingloom To: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= Subject: Re: bug#49228: guix import go fails when module does not have a documenation on pkg.go.dev Message-ID: <20210630232005.103a5472@riseup.net> In-Reply-To: <20210626003047.4eb8c995@alma-ubu.fritz.box> References: <20210626003047.4eb8c995@alma-ubu.fritz.box> 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: 49228 Cc: 49228@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sat, 26 Jun 2021 00:30:47 +0200 Bj=C3=B6rn H=C3=B6fling wrote: > $ ./pre-inst-env guix import go github.com/caspr-io/yamlpath=20 > go-module->guix-package module-path: github.com/caspr-io/yamlpath > Backtrace: > In ice-9/boot-9.scm: > 1752:10 8 (with-exception-handler _ _ #:unwind? _ # _) > In unknown file: > 7 (apply-smob/0 #) > In ice-9/boot-9.scm: > 724:2 6 (call-with-prompt _ _ # default-prompt-handle?>) In ice-9/eval.scm: > 619:8 5 (_ #(#(#))) > In guix/ui.scm: > 2147:12 4 (run-guix-command _ . _) > In guix/scripts/import.scm: > 120:11 3 (guix-import . _) > In guix/scripts/import/go.scm: > 118:27 2 (guix-import-go . _) > In ice-9/eval.scm: > 293:34 1 (_ #(#(#(#(#(#(#(#(#(#(#(?) ?) ?) ?) ?) ?) ?) ?) ?) ?) > ?)) 619:8 0 (_ #(#(# #f))) >=20 > ice-9/eval.scm:619:8: Throw to key `match-error' with args `("match" > "no matching pattern" #f)'. >=20 > If you look at the page >=20 > https://pkg.go.dev/github.com/caspr-io/yamlpath >=20 > It has no Description, because the site cannot parse license > information correctly and thus conservatively does not display any > info. Could we use godocs.io? It's more copyleft friendly AFAIK. But that's just hearsay, I'm only getting into Go now, so idk much about the services surrouding it yet. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 01 00:18:16 2021 Received: (at 49228) by debbugs.gnu.org; 1 Jul 2021 04:18:16 +0000 Received: from localhost ([127.0.0.1]:59267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyo9Y-0003eE-JM for submit@debbugs.gnu.org; Thu, 01 Jul 2021 00:18:16 -0400 Received: from out1.migadu.com ([91.121.223.63]:53756) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyo9V-0003e4-Iy for 49228@debbugs.gnu.org; Thu, 01 Jul 2021 00:18:15 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1625113091; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=STAxlQbQg7speeUnGc8vHfWPLExvsR4s+Lnyx2tuIPQ=; b=fDTZBOATNjOcYbeWXmhjqalGOlijQM8Gla84q+M2D6Qaxm20LZGMsRbZPXrPo+hAhQkYdO HzThCDeSy7Dk7j6RMk9x2+bFXrzBx2Pskob7Vy4vIYoxrkDQJ4AI/M715C00Pd0QclZoOV 87Bd2KjsF6VcaDN4lvGLFi8L5K8mevU= From: Sarah Morgensen To: raingloom Subject: Re: bug#49228: guix import go fails when module does not have a documenation on pkg.go.dev References: <20210626003047.4eb8c995@alma-ubu.fritz.box> <20210630232005.103a5472@riseup.net> Date: Wed, 30 Jun 2021 21:18:09 -0700 In-Reply-To: <20210630232005.103a5472@riseup.net> (raingloom@riseup.net's message of "Wed, 30 Jun 2021 23:20:05 +0200") Message-ID: <86fswy7jlq.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: iskarian@mgsn.dev X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49228 Cc: =?utf-8?Q?Bj=C3=B6rn_H=C3=B6fling?= , 49228@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi, raingloom writes: >> If you look at the page >> >> https://pkg.go.dev/github.com/caspr-io/yamlpath >> >> It has no Description, because the site cannot parse license >> information correctly and thus conservatively does not display any >> info. > > Could we use godocs.io? It's more copyleft friendly AFAIK. > But that's just hearsay, I'm only getting into Go now, so idk much > about the services surrouding it yet. Right now the information from pkg.go.dev is used to populate the package's * synopsis * description, and * license sections. As far as I can tell, godocs.io does not have any information about the package's license... *eventually* we may want to consider writing a license guesser of our own, as that could potentially be useful across all of Guix. As for description, godocs.io seems to collects description information differently (inferiorly?) than pkg.go.dev. For example, compare: https://godocs.io/github.com/mitchellh/go-homedir https://pkg.go.dev/github.com/mitchellh/go-homedir I wonder how complicated it would be to guess at a synopsis/description ourselves? It may be worth asking the initial committers of the go importer. -- Sarah From unknown Sat Aug 09 15:54:16 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 29 Jul 2021 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator