From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 18 23:20:21 2021 Received: (at 49202) by debbugs.gnu.org; 19 Aug 2021 03:20:21 +0000 Received: from localhost ([127.0.0.1]:57886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGYbN-0003JA-97 for submit@debbugs.gnu.org; Wed, 18 Aug 2021 23:20:21 -0400 Received: from mail-qk1-f169.google.com ([209.85.222.169]:42706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGYbI-0003Is-OL for 49202@debbugs.gnu.org; Wed, 18 Aug 2021 23:20:20 -0400 Received: by mail-qk1-f169.google.com with SMTP id bj38so5623676qkb.9 for <49202@debbugs.gnu.org>; Wed, 18 Aug 2021 20:20:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=fjinJKJUl0fYFXV19Zp4jM8xubANpUpC59wEYZJtBCw=; b=gy4UbxrY7hvLj4XM3/Jv/Ca/AAq3Q3aeVdufjGtogfHX4xPIUievGE7lfigsK+EZDg OS0oUAChW0wzS8AuuWD+UDZM1c9j+X9ss7erBYxBQA37KHICGYAHxLXbN+7qDaVYr6Ph qYvITtqjngIoxl7gwhjbCawmKB549EM3WK9OmvU9hxlJzBFBfhCHEiY+AD0Qs+4Nda4n PQfgx6hHuBJUvH0VNvA/oYHo1A6W7GsEHpFgcB7x5jC6jH8JV73B0kf24yJJnzdLAvMO yXpFnYmmLBpeU6e3c9Az5NMzY3fBUvORqZo74+t/dlFB8egAIsKLqBv5IU3DXdc1KTC+ Szew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=fjinJKJUl0fYFXV19Zp4jM8xubANpUpC59wEYZJtBCw=; b=Qv2Ah+h0A9mED7IdpsTr3CIXnsx0kdj9u0YcpzVDkwCh9XQQM1bCwGW66R3ATNfXBo 1uu2tFMTIQZ9u+N5Mb9p/5AKGTTj7zloOPkd7J76xdJoe+VoCJd6sqC8D07Jhsuj9MNf vfOIxX9JHr6fSwYqCXijxlecOeG1ZBs49+Z6+lwU1hfVE+Fg13pbZ2Zvoe0OAM3KeYWm 36yBIUIZgABwOc5X73tnaxzIGAoe41C1wfPRBnWdmxewmpG2bDKEoC3v58QfEcOGxhyg E6iB4ZFzgGfPRXCLZRh5NiP7Lm59vK1KmK+Wci/15V5rxOTt2V7RmvzixntedBp5/ohB uXZA== X-Gm-Message-State: AOAM530ZIRcx7PgXbYmVccoA0ajGF7Hiq1i7dodFPzbyIhy7F8MFg7FW QjVrPy0Ue8FlxRJeTcCEWQo= X-Google-Smtp-Source: ABdhPJwnXVP1blCuyCQhjpFg01f19LyBC3eNbA7sboR/nrjRCFPstOyAl18SidFkqg0nfS1MprVdbg== X-Received: by 2002:ae9:e810:: with SMTP id a16mr1649333qkg.492.1629343211212; Wed, 18 Aug 2021 20:20:11 -0700 (PDT) Received: from hurd (dsl-236-123-187.b2b2c.ca. [207.236.123.187]) by smtp.gmail.com with ESMTPSA id z1sm789812qtj.35.2021.08.18.20.20.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 20:20:10 -0700 (PDT) From: Maxim Cournoyer To: Sarah Morgensen Subject: Re: bug#49202: guix import go type error (failed regex match?) References: <20210624013203.041e526b@riseup.net> <86r1gr70n7.fsf@mgsn.dev> Date: Wed, 18 Aug 2021 23:20:08 -0400 In-Reply-To: <86r1gr70n7.fsf@mgsn.dev> (Sarah Morgensen's message of "Thu, 24 Jun 2021 08:17:16 -0700") Message-ID: <877dgiw26v.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49202 Cc: 49202@debbugs.gnu.org, raingloom , zimoun 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, Sarah Morgensen writes: > zimoun writes: > >> Hi, >> >> Thanks for the report. >> >> On Thu, 24 Jun 2021 at 02:11, raingloom wrote: >> >>> When I run >>> guix import go -r github.com/golang-migrate/migrate/v4 >>> it works for a looong time (something else to work on I guess. maybe >>> fetching every git repo is not the best solution.) and then gives this >>> error: >>> >>> In procedure vector-ref: Wrong type argument in position 1 (expecting >>> vector): #f >> >> I seems to work without the option recursive '-r'. So, I guess it is >> related to the patch [1] and issues with the recursive importers, see >> [2]. > > I do not think it is related to recursive import... I was able to narrow > down the repro to > > guix import go github.com/containerd/containerd > > with the same trace. The offending go.mod: > > module github.com/containerd/containerd Since Sarah's improved go.mod parser has been merged, the above Go module can now be imported. So we're down to: --8<---------------cut here---------------start------------->8--- $ guix import go github.com/cockroachdb/cockroach-go Backtrace: 9 (primitive-load "/home/maxim/.config/guix/current/bin/guix") In guix/ui.scm: 2185:7 8 (run-guix . _) 2148:10 7 (run-guix-command _ . _) In guix/scripts/import.scm: 120:11 6 (guix-import . _) In guix/scripts/import/go.scm: 115:27 5 (guix-import-go . _) In guix/import/go.scm: 531:18 4 (go-module->guix-package _ #:goproxy _ #:version _ #:pin-versions? _) In guix/git.scm: 247:4 3 (update-cached-checkout _ #:ref _ #:recursive? _ #:check-out? _ #:starting-commit _ # _ # _) 236:18 2 (resolve _) In git/reference.scm: 60:8 1 (_ _ _) In git/bindings.scm: 77:2 0 (raise-git-error _) --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- $ guix import go dmitri.shuralyov.com/gpu/mtl Backtrace: 5 (primitive-load "/home/maxim/.config/guix/current/bin/guix") In guix/ui.scm: 2185:7 4 (run-guix . _) 2148:10 3 (run-guix-command _ . _) In guix/scripts/import.scm: 120:11 2 (guix-import . _) In guix/scripts/import/go.scm: 115:27 1 (guix-import-go . _) In guix/import/go.scm: 615:19 0 (go-module->guix-package "dmitri.shuralyov.com/gpu/mtl" #:goproxy _ #:version _ # _) guix/import/go.scm:615:19: In procedure go-module->guix-package: In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f --8<---------------cut here---------------end--------------->8--- Thanks, Maxim