From unknown Mon Jun 16 23:57:05 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#49202 <49202@debbugs.gnu.org> To: bug#49202 <49202@debbugs.gnu.org> Subject: Status: guix import go type error (failed regex match?) Reply-To: bug#49202 <49202@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:57:05 +0000 retitle 49202 guix import go type error (failed regex match?) reassign 49202 guix submitter 49202 raingloom severity 49202 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 23 20:10:22 2021 Received: (at submit) by debbugs.gnu.org; 24 Jun 2021 00:10:22 +0000 Received: from localhost ([127.0.0.1]:42051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwCwo-0001ng-6i for submit@debbugs.gnu.org; Wed, 23 Jun 2021 20:10:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:40766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwCwm-0001nX-2A for submit@debbugs.gnu.org; Wed, 23 Jun 2021 20:10:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwCwl-0006tv-TC for bug-guix@gnu.org; Wed, 23 Jun 2021 20:10:19 -0400 Received: from mx1.riseup.net ([198.252.153.129]:34318) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwCwj-0008Kj-H5 for bug-guix@gnu.org; Wed, 23 Jun 2021 20:10:19 -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 4G9L9z0slPzDrPm for ; Wed, 23 Jun 2021 17:10:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1624493415; bh=NrOvoX1OdNLh8fk35GBJdlUWFjTeRsm+4qrITs2X2JA=; h=Date:From:To:Subject:From; b=feWx7et3bT3vcUXo7UvdRYsxxjxYCDUFnLs+9LOsYA6D4+a3N6Q0yt2wkzIhucWnF WMzcaMsiupnc4CMLukDFPE5ARxAybrVfy8AibdpiOd6LKFKpjzbJvV6C//CFnXIREj zo338SNgFrOe8bFb3NrgFUml5+4RUmTbuyvKnL24= X-Riseup-User-ID: C5BA1E42DA7FCF38C1D6D951C54781E554CFE1C29BE49828A466B92798097F1E Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4G9L9y2xCTz5vbC for ; Wed, 23 Jun 2021 17:10:14 -0700 (PDT) Date: Thu, 24 Jun 2021 01:32:03 +0200 From: raingloom To: Guix Bugs Subject: guix import go type error (failed regex match?) Message-ID: <20210624013203.041e526b@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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@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: -2.4 (--) 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 Trace: ``` following redirection to `https://go.mongodb.org/mongo-driver/'... following redirection to `https://github.com/moby/moby?go-get=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 (("github.com/cznic/mathutil" #f) ("github.=E2=80=A6" = =E2=80=A6) =E2=80=A6)) 586:17 13 (map1 (("github.com/containerd/containerd" #f) ("=E2=80=A6" = =E2=80=A6) =E2=80=A6)) In guix/import/utils.scm: 466:33 12 (lookup-node "github.com/containerd/containerd" #f) In guix/import/go.scm: 646:5 11 (_ _ #:version _ #:repo _) In ice-9/boot-9.scm: 1752:10 10 (with-exception-handler _ _ #:unwind? _ # _) In guix/import/go.scm: 656:11 9 (_) In guix/memoization.scm: 98:0 8 (mproc "github.com/containerd/containerd" #:goproxy "h=E2=80= =A6" =E2=80=A6) In unknown file: 7 (_ # =E2=80=A6) In guix/import/go.scm: 589:32 6 (go-module->guix-package "github.com/containerd/contai=E2=80= =A6" =E2=80=A6) In ice-9/ports.scm: 472:4 5 (with-input-from-string _ _) In guix/import/go.scm: 359:10 4 (_) In unknown file: 3 (_ # =E2=80=A6) In guix/import/go.scm: 334:24 2 (replace-directive (("k8s.io/utils" "v0.0.0-20201=E2=80=A6") = =E2=80=A6) =E2=80=A6) In ice-9/regex.scm: 118:20 1 (match:substring #f _) In ice-9/boot-9.scm: 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure vector-ref: Wrong type argument in position 1 (expecting vector): #f ``` From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 24 10:03:09 2021 Received: (at 49202) by debbugs.gnu.org; 24 Jun 2021 14:03:09 +0000 Received: from localhost ([127.0.0.1]:43647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwPwj-0002Xd-4m for submit@debbugs.gnu.org; Thu, 24 Jun 2021 10:03:09 -0400 Received: from mail-qt1-f169.google.com ([209.85.160.169]:37547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwPwg-0002XC-Re for 49202@debbugs.gnu.org; Thu, 24 Jun 2021 10:03:08 -0400 Received: by mail-qt1-f169.google.com with SMTP id g14so4845964qtv.4 for <49202@debbugs.gnu.org>; Thu, 24 Jun 2021 07:03:06 -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; bh=og64kkxLEBoDOlIlmETFPlgjeerW7kmyFHo62NFkNF4=; b=OMccE92MmQr774PB4xaL+pfSOgfHTEiTCRY3wPfrJ2Lwdy2glEm8tot5GvIh8xvedU s0LMp1Zj9VWuDggTyVQB/NNOFoH8cSEwywRLAr5ul4lZIFwXYUC+wzNLFUgfu77oHfR8 fN11WcTWAhPIHjTzeYoACnYuBGvwmtPD1ABR5Gc6uS0yrE2Dpw+ZYv0rp4jB+pBAOWzU w5P9+xE/KjTTa0PPIK36YHRmcE3kBrI/IsKv3A+avyFpu7l1THGMFh6ieRKIrN0/J4/l Xfe4a0Ho3h6039OBqdzfUpBQSmt6x1Li4WyOJWVj9jsGia8p/L6wUZIwCNyEk4H6Q3KY 2Uyw== 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; bh=og64kkxLEBoDOlIlmETFPlgjeerW7kmyFHo62NFkNF4=; b=Fhe6vvT2nYV+Av5NWMG+SUTT+hFxxUeZ+7AFk1CZ4Bng6Nmch3Yb4WBlBy/gUtaoax bhCJ0pwlDpet9AICfHZ7ajWh/KfeemD+DCYnlgRx/NDjbGZAqEyjRirdalCC/6EeRp42 KGX2xhSmfstKxitq4cARtR3Qe5RI9rlh55neY6Qtz181xKVt792qGigTG8A2StQbEPYO ZSIfP8Nm84dOyX/BHDu2XjV+tDngTQPPhnX8jGo6UEJ3e+TMI+khS2iOZwGYTADuDrXB UcJnd52Z5yEbs5BsTZWMLP9o/kRCs9YfQegf+9marML1Hu5YZo0b9hPnw8g36ik++NZp /nWA== X-Gm-Message-State: AOAM531b/+j0xG4nAqImtV6m/At0NKvVrmqsmn48Yy5a0l52kBaxVJBu olHlyHsA6t+ICB0cjivYVCY++2KKJLaUEBAQmbQ= X-Google-Smtp-Source: ABdhPJwFN/Op6f2y02mEBgy6KQy0fX2QAkihxT0Fg2smqskKVZ0tyJk8bZJZqKXNybiHrG7eXpFFKu3yMctnFLzppNw= X-Received: by 2002:a05:622a:30e:: with SMTP id q14mr4869830qtw.313.1624543381186; Thu, 24 Jun 2021 07:03:01 -0700 (PDT) MIME-Version: 1.0 References: <20210624013203.041e526b@riseup.net> In-Reply-To: <20210624013203.041e526b@riseup.net> From: zimoun Date: Thu, 24 Jun 2021 16:02:49 +0200 Message-ID: Subject: Re: bug#49202: guix import go type error (failed regex match?) To: raingloom Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49202 Cc: 49202@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 (-) 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]. 1: 2: All the best, simon From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 24 11:17:33 2021 Received: (at 49202) by debbugs.gnu.org; 24 Jun 2021 15:17:33 +0000 Received: from localhost ([127.0.0.1]:43837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwR6d-0006qj-GN for submit@debbugs.gnu.org; Thu, 24 Jun 2021 11:17:33 -0400 Received: from out0.migadu.com ([94.23.1.103]:62268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwR6X-0006qV-LM for 49202@debbugs.gnu.org; Thu, 24 Jun 2021 11:17:25 -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=1624547839; 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: references:references; bh=+G7hzxcZhRR8siEIQkqkwFEQNdmPrqxoeDMXCI4DgAI=; b=AZM6CMjHrASG/ZaDn6VzuHIqjIT9JkEHD6FYEoIhBEmH3QeFm0XKtMo2av3JbXLXPIZHeB aCr/RODqjXw8PlUIZMYZy1NlXykmtvDn0yy1tmE//HotAGmq7+EYTzTOo5TougWV3FZRyw xWEBLeXOXvOPN/azO6vBN+jrDqfp+EI= From: Sarah Morgensen To: zimoun Subject: Re: bug#49202: guix import go type error (failed regex match?) References: <20210624013203.041e526b@riseup.net> Date: Thu, 24 Jun 2021 08:17:16 -0700 Message-ID: <86r1gr70n7.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: 49202 Cc: 49202@debbugs.gnu.org, raingloom 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 (-) 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: --8<---------------cut here---------------start------------->8--- module github.com/containerd/containerd go 1.16 require ( github.com/Microsoft/go-winio v0.5.0 github.com/Microsoft/hcsshim v0.8.17 github.com/containerd/aufs v1.0.0 github.com/containerd/btrfs v1.0.0 github.com/containerd/cgroups v1.0.1 github.com/containerd/console v1.0.2 github.com/containerd/continuity v0.1.0 github.com/containerd/fifo v1.0.0 github.com/containerd/go-cni v1.0.2 github.com/containerd/go-runc v1.0.0 github.com/containerd/imgcrypt v1.1.1 github.com/containerd/nri v0.1.0 github.com/containerd/ttrpc v1.0.2 github.com/containerd/typeurl v1.0.2 github.com/containerd/zfs v1.0.0 github.com/containernetworking/plugins v0.9.1 github.com/coreos/go-systemd/v22 v22.3.2 github.com/davecgh/go-spew v1.1.1 github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c github.com/docker/go-metrics v0.0.1 github.com/docker/go-units v0.4.0 github.com/emicklei/go-restful v2.9.5+incompatible github.com/fsnotify/fsnotify v1.4.9 github.com/gogo/googleapis v1.4.0 github.com/gogo/protobuf v1.3.2 github.com/google/go-cmp v0.5.5 github.com/google/uuid v1.2.0 github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 github.com/hashicorp/go-multierror v1.0.0 github.com/imdario/mergo v0.3.11 github.com/klauspost/compress v1.11.13 github.com/moby/locker v1.0.1 github.com/moby/sys/mountinfo v0.4.1 github.com/moby/sys/symlink v0.1.0 github.com/opencontainers/go-digest v1.0.0 github.com/opencontainers/image-spec v1.0.1 github.com/opencontainers/runc v1.0.0 github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417 github.com/opencontainers/selinux v1.8.2 github.com/pelletier/go-toml v1.8.1 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.7.1 github.com/prometheus/procfs v0.6.0 // indirect; temporarily force v0.6.0, which was previously defined in imgcrypt as explicit version github.com/satori/go.uuid v1.2.0 // indirect github.com/sirupsen/logrus v1.8.1 github.com/stretchr/testify v1.6.1 github.com/tchap/go-patricia v2.2.6+incompatible github.com/urfave/cli v1.22.2 go.etcd.io/bbolt v1.3.5 golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 golang.org/x/sync v0.0.0-20201207232520-09787c993a3a golang.org/x/sys v0.0.0-20210426230700-d19ff857e887 google.golang.org/grpc v1.38.0 google.golang.org/protobuf v1.26.0 gotest.tools/v3 v3.0.3 k8s.io/api v0.20.6 k8s.io/apimachinery v0.20.6 k8s.io/apiserver v0.20.6 k8s.io/client-go v0.20.6 k8s.io/component-base v0.20.6 k8s.io/cri-api v0.20.6 k8s.io/klog/v2 v2.4.0 k8s.io/utils v0.0.0-20201110183641-67b214c5f920 ) // When updating replace rules, make sure to also update the rules in integration/client/go.mod replace ( // prevent transitional dependencies due to containerd having a circular // dependency on itself through plugins. see .empty-mod/go.mod for details github.com/containerd/containerd => ./.empty-mod/ github.com/gogo/googleapis => github.com/gogo/googleapis v1.3.2 // urfave/cli must be <= v1.22.1 due to a regression: https://github.com/urfave/cli/issues/1092 github.com/urfave/cli => github.com/urfave/cli v1.22.1 google.golang.org/genproto => google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63 ) --8<---------------cut here---------------end--------------->8--- Based on the trace it seems like it's treating the k8s.io/utils require as a replace directive, but I have no idea why. > > 1: > 2: > > > All the best, > simon Sarah From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 24 17:20:09 2021 Received: (at 49202) by debbugs.gnu.org; 24 Jun 2021 21:20:09 +0000 Received: from localhost ([127.0.0.1]:44238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwWlc-0005bO-RP for submit@debbugs.gnu.org; Thu, 24 Jun 2021 17:20:09 -0400 Received: from out1.migadu.com ([91.121.223.63]:27304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwWlZ-0005b9-2j for 49202@debbugs.gnu.org; Thu, 24 Jun 2021 17:20:06 -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=1624569603; 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=CbZ2Dap3+/bTrIvF8Oa/AZN+Xz1H0JylC4OMGQiVJqA=; b=OVooE8O1Tgvx34zM0pP94kF1w18voqDjrliBm320PtE6jahwxMklhj8imnSBoSh+ZyaszP +bMVIZ7tkHbmiJnm6wswaOSi70tlLQS2UEC3eHGsZ6zj12uf9SQzhEfX86YXPvYPyVqnn+ pb9D++biMognq4v01Zmy471mRfX0U4Q= From: Sarah Morgensen To: zimoun Subject: Re: bug#49202: guix import go type error (failed regex match?) References: <20210624013203.041e526b@riseup.net> <86r1gr70n7.fsf@mgsn.dev> Date: Thu, 24 Jun 2021 14:20:00 -0700 In-Reply-To: <86r1gr70n7.fsf@mgsn.dev> (Sarah Morgensen's message of "Thu, 24 Jun 2021 08:17:16 -0700") Message-ID: <86o8bv6jun.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: 49202 Cc: 49202@debbugs.gnu.org, raingloom 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 (-) Sarah Morgensen writes: > > // When updating replace rules, make sure to also update the rules in integration/client/go.mod > replace ( > // prevent transitional dependencies due to containerd having a circular > // dependency on itself through plugins. see .empty-mod/go.mod for details > github.com/containerd/containerd => ./.empty-mod/ > github.com/gogo/googleapis => github.com/gogo/googleapis v1.3.2 > // urfave/cli must be <= v1.22.1 due to a regression: https://github.com/urfave/cli/issues/1092 > github.com/urfave/cli => github.com/urfave/cli v1.22.1 > google.golang.org/genproto => google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63 > ) > > Based on the trace it seems like it's treating the k8s.io/utils require > as a replace directive, but I have no idea why. > Looking at this again, I realize I misread the code: the "k8s.io/utils" etc. is actually the head of the already-parsed requirements list. Instead, when the error is thrown, we are in replace-directive, which is called by in-replace... --8<---------------cut here---------------start------------->8--- (define (in-replace requirements replaced) (let ((line (read-line))) (cond ((eof-object? line) ;; this should never happen here but we ignore silently (values requirements replaced)) ((string=? line ")") ;; end of block, coming back to toplevel (toplevel requirements replaced)) (#t (call-with-values (lambda () (replace-directive requirements replaced line)) in-replace))))) --8<---------------cut here---------------end--------------->8--- ...which does not handle comments. (Even the top-level parser doesn't explicitly handle comments, it just discards any line that does not start with "require" or "replace.") Looks like the parser could use a little more robustness! :) Hope that helps, Sarah From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 25 12:48:04 2021 Received: (at 49202) by debbugs.gnu.org; 25 Jun 2021 16:48:04 +0000 Received: from localhost ([127.0.0.1]:46710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwozl-0001a0-A2 for submit@debbugs.gnu.org; Fri, 25 Jun 2021 12:48:04 -0400 Received: from mail-wr1-f43.google.com ([209.85.221.43]:47029) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwozi-0001Zd-QB for 49202@debbugs.gnu.org; Fri, 25 Jun 2021 12:47:55 -0400 Received: by mail-wr1-f43.google.com with SMTP id l8so2515583wry.13 for <49202@debbugs.gnu.org>; Fri, 25 Jun 2021 09:47:54 -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=DeVyoZmP7/X8bInQObLsTWBUmmYh5MfGGdAGWKeX/Ls=; b=tHuzhQwHjby5dYG9v2q0l6QOEpp2grwwtHZvhFKOQb4IpcS8xLI4oUXZErWKgJK3nS 9TBbil1K9Lbju3VBBR341C4MaqR7IOmUzpdvgkLZnGolZ++ftrJ9vOPoWNdrZasrVjAH NiKOTn3MQM/PZfSAB0VenwmumFHVckVXxCygh7QK768/Ozr7vMkB4/sf5RBf4bRhz0+n NF3s8aYbykD3NgXJ0qMZbt7//BvVK3N01B1P0iju2kkYqNRxm2cfkQwuHGynW19MWRgr i7d2v7TxMScS80vzQ5oo80wp5c3SlgF06lG8IS/ZXhUebyQOHILSragfgq116EDcAA62 Smcw== 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=DeVyoZmP7/X8bInQObLsTWBUmmYh5MfGGdAGWKeX/Ls=; b=rlqL4Rvdh4XCb5PURSVLIZ9s6/pJQSU3dCp4wpxQLLfnF//2EVcN7rDCWKYufIUrh8 rDMcEz3w4ONacvOP7sJlJ8QO4692J67hU6Grly7t87SheDh3XI6IiMb+riOc1rjo/aro Qq553KanSkjMXNNaOzuDx/7l+q2004uDmjf2aoMa/MdwWq9fiO6F+fSk9D1uPX8CKlpk LxAkYGJysjK7i3F8Gdyl3DgfjiJ6nMiVDvKfEIkHSMrr8tKizuEmwxSeLZ8vPm26SaWI 3GeVtryxARl+FnePgSqdkABnWlmXGCVMGF848zw+L6vtBrz8kpBnUWMw6qnHFWdn8Zn6 mrmg== X-Gm-Message-State: AOAM532SMXHWUxC6q1NWZNCveAKhTAOQgC0qoHCVwqP/j4hQmh7onb+2 8y0zItRLiawOco1Ulz/h9Ic= X-Google-Smtp-Source: ABdhPJz4aeScLOvxCZRTLN3vSvDMeHnN7PP0giHTbhdsOmnBZvksaG/H4fTWtndNO3qPNnoVAfPNXA== X-Received: by 2002:a5d:5603:: with SMTP id l3mr11983951wrv.403.1624639668880; Fri, 25 Jun 2021 09:47:48 -0700 (PDT) Received: from bioinfomeary01-Precision-7820-Tower ([193.48.40.110]) by smtp.gmail.com with ESMTPSA id l22sm7477814wrz.54.2021.06.25.09.47.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jun 2021 09:47:48 -0700 (PDT) From: zimoun To: raingloom Subject: Re: bug#49202: guix import go type error (failed regex match?) References: <20210624013203.041e526b@riseup.net> Date: Fri, 25 Jun 2021 18:40:34 +0200 In-Reply-To: <20210624013203.041e526b@riseup.net> (raingloom@riseup.net's message of "Thu, 24 Jun 2021 01:32:03 +0200") Message-ID: <85zgvd99tp.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, iskarian@mgsn.dev 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 jeu., 24 juin 2021 at 01:32, 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 Using v3 from patch#49196 [1], I get the piece below. As mentioned by Sarah, the parser seems poor for some dependencies. 1: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix import go -r github.com/golang-migrate/migrate/v4 following redirection to `https://go.mongodb.org/mongo-driver/'... following redirection to `https://github.com/moby/moby?go-get=1'... guix import: warning: Something went wrong with ("github.com/containerd/containerd" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("github.com/cockroachdb/cockroach-go" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("github.com/bmizerany/assert" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("cloud.google.com/go/storage" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("cloud.google.com/go/spanner" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("go.opentelemetry.io/otel/sdk" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("go.opentelemetry.io/otel/metric" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("github.com/go-gl/glfw/v3.3/glfw" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("dmitri.shuralyov.com/gpu/mtl" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("github.com/hudl/fargo" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). following redirection to `https://github.com/HdrHistogram/hdrhistogram-go?go-get=1'... guix import: warning: Failed to import package "github.com/cncf/udpa/go". reason: "https://pkg.go.dev/github.com/cncf/udpa" could not be fetched: HTTP error 404 ("Not Found"). This package and its dependencies won't be imported. guix import: warning: Something went wrong with ("go.opentelemetry.io/proto/otlp" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Failed to import package "github.com/cncf/xds/go". reason: "https://pkg.go.dev/github.com/cncf/xds" could not be fetched: HTTP error 404 ("Not Found"). This package and its dependencies won't be imported. following redirection to `https://github.com/jtolio/gls?go-get=1'... guix import: warning: Something went wrong with ("github.com/neelance/sourcemap" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("github.com/neelance/astrewrite" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("github.com/jcmturner/dnsutils/v2" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("github.com/shirou/gopsutil/v3" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). following redirection to `https://github.com/openhistogram/circonusllhist?go-get=1'... guix import: warning: Something went wrong with ("gonum.org/v1/gonum" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). following redirection to `https://proxy.golang.org/@v/list'... guix import: warning: Failed to import package "//". reason: "https://proxy.golang.org/@v/list" could not be fetched: HTTP error 410 ("Gone"). This package and its dependencies won't be imported. guix import: warning: Something went wrong with ("github.com/chzyer/test" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("github.com/chzyer/logex" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("google.golang.org/grpc/cmd/protoc-gen-go-grpc" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("github.com/gobuffalo/gogen" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("github.com/markbates/safe" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("github.com/markbates/oncer" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("github.com/markbates/errx" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("github.com/gobuffalo/github_flavored_markdown" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("github.com/aws/aws-sdk-go-v2/service/s3" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Something went wrong with ("github.com/aws/aws-sdk-go-v2/feature/s3/manager" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). guix import: warning: Failed to import package "github.com/apache/arrow/go/arrow". reason: "https://pkg.go.dev/github.com/apache/arrow" could not be fetched: HTTP error 404 ("Not Found"). This package and its dependencies won't be imported. guix import: warning: Something went wrong with ("github.com/Azure/go-autorest/autorest/adal" #:goproxy "https://proxy.golang.org" #:version #f #:pin-versions? #f). (define-public go-github-com-cloudflare-golz4 (package (name "go-github-com-cloudflare-golz4") (version "0.0.0-20150217214814-ef862a3cdc58") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/cloudflare/golz4") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 "0ckiwp3aa010sdnki6vd32f0n08768ppnggc8d7syzh3kkn9zvn1")))) (build-system go-build-system) (arguments '(#:import-path "github.com/cloudflare/golz4")) (home-page "https://github.com/cloudflare/golz4") (synopsis "golz4") (description "Package lz4 implements compression using lz4.c and lz4hc.c ") (license license:bsd-3))) [...] (define-public go-github-com-golang-migrate-migrate-v4 (package (name "go-github-com-golang-migrate-migrate-v4") (version "4.14.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/golang-migrate/migrate") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1mgs3bngghmirmn0pw351m54darv8d5iymlxcjqw3vr0cyn5aqj0")))) (build-system go-build-system) (arguments '(#:import-path "github.com/golang-migrate/migrate")) (propagated-inputs `(("go-modernc-org-zappy" ,go-modernc-org-zappy) ("go-modernc-org-strutil" [...] ("go-cloud-google-com-go" ,go-cloud-google-com-go))) (home-page "https://github.com/golang-migrate/migrate") (synopsis "migrate") (description "Package migrate reads migrations from sources and runs them against databases. Sources are defined by the `source.Driver` and databases by the `database.Driver` interface. The driver interfaces are kept \"dumb\", all migration logic is kept in this package. ") (license license:expat))) --8<---------------cut here---------------end--------------->8--- Hope that helps, simon From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 28 12:24:51 2021 Received: (at 49202) by debbugs.gnu.org; 28 Jun 2021 16:24:52 +0000 Received: from localhost ([127.0.0.1]:52345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxu3w-0005dY-U0 for submit@debbugs.gnu.org; Mon, 28 Jun 2021 12:24:51 -0400 Received: from mail-wm1-f53.google.com ([209.85.128.53]:36370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxu3v-0005dG-7u for 49202@debbugs.gnu.org; Mon, 28 Jun 2021 12:24:43 -0400 Received: by mail-wm1-f53.google.com with SMTP id m41-20020a05600c3b29b02901dcd3733f24so14162356wms.1 for <49202@debbugs.gnu.org>; Mon, 28 Jun 2021 09:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:disposition-notification-to:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=b1E1NSqzKFedJf/et9uQSEmQeaoVc7z/23LZk55sV5g=; b=ajRxOqgfLrjU8UtPOO6gIe1X2R58LUKramX2krzE+7qKDYx5ioglh0gtw0GbLYaHiT ifjMrdI52wOz9Wxys7+e27k6HP/4TgKEV1lwGAsOjqZs6kXhlHKY1M42FL+t05TsNvQS 7v5LAdXAPFyp8V4JaRJWf9pNPlimntOtPAi/LJ3+rp+fTcBjKGJI6uqUdWGcHC3AyQzh BripuCGILSXgILziA9FJnmvSHIfrU8ytLS9bOPpSRpUFmodlKddMQKXxoWO01W2cTMWZ fu0NRxsly6jvHb+wdUjSXtKsld0LdMaFLu9NbjB3m/Zyzb/RZbD4+/v9dWGjnoyjezsT 1lqw== 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 :disposition-notification-to:date:in-reply-to:message-id:user-agent :mime-version:content-transfer-encoding; bh=b1E1NSqzKFedJf/et9uQSEmQeaoVc7z/23LZk55sV5g=; b=dQw/in3gewyi9llb1wJECE3pZNX+/RfHJ0hGQEbq0LSlTWM7KlL5Fk31BZNESvSJVn ZNXF+z8sYJGf9TkK+JOMPbzhnlCs0QXJnGdXbRQbiRtx60qU8Aa1SLn3vIeiz4oyWJdG G8bJtiSThXsUljQGId/5pyGRXvnB+I5X5CUFH1gj2+Oe51VmjcM5PHJIjRqfBvJs7kgk JZyAfDESQTGw+PPf46gNeg0pr0k85w57CFOrE9lDCV/WkM69GcqB3ycZ7Q6renLfHJiM W95UX/Z43cYuiP3BMIAflvvpk9flEuTgsSmaLHNeYStF8TlY/b3AAphAvzrNDD7suTX5 MzCw== X-Gm-Message-State: AOAM5311tmQrd6B0ug1aMgNRg8pOBnFGe9xNalrlhrYHpmR4g8BtJHy2 T5RwlEoAl8YG4IsVLKnG2r0= X-Google-Smtp-Source: ABdhPJz755QD1IT6lv2HFFeiTi2Bj3Zp4xi1nG2i27xhaBPZu4Na/wJ8if/qPWEJDmZuImM68J17Aw== X-Received: by 2002:a05:600c:414e:: with SMTP id h14mr27589167wmm.6.1624897477612; Mon, 28 Jun 2021 09:24:37 -0700 (PDT) Received: from bioinfomeary01-Precision-7820-Tower ([193.48.40.110]) by smtp.gmail.com with ESMTPSA id u10sm14176119wmm.21.2021.06.28.09.24.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Jun 2021 09:24:37 -0700 (PDT) From: zimoun To: raingloom Subject: Re: bug#49202: guix import go type error (failed regex match?) References: <20210624013203.041e526b@riseup.net> <85zgvd99tp.fsf@gmail.com> Date: Mon, 28 Jun 2021 18:18:17 +0200 In-Reply-To: <85zgvd99tp.fsf@gmail.com> (zimoun's message of "Fri, 25 Jun 2021 18:40:34 +0200") Message-ID: <85sg127yk6.fsf@gmail.com> 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.4 (/) X-Debbugs-Envelope-To: 49202 Cc: 49202@debbugs.gnu.org, iskarian@mgsn.dev 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 ven., 25 juin 2021 at 18:40, zimoun wrote: > On jeu., 24 juin 2021 at 01:32, 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 > > Using v3 from patch#49196 [1], I get the piece below. As mentioned by > Sarah, the parser seems poor for some dependencies. > > 1: With v4 from patch#4916 [1], I get this messages and the reports seems clear enough. I propose to close this bug and open individual issues to tackle each; for instance: - github.com/containerd/containerd - github.com/cockroachdb/cockroach-go - dmitri.shuralyov.com/gpu/mtl WDYT? --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix import go -r github.com/golang-migrate/migrate/v4 following redirection to `https://go.mongodb.org/mongo-driver/'... following redirection to `https://github.com/moby/moby?go-get=3D1'... guix import: warning: Failed to import package "github.com/containerd/conta= inerd". reason: ("vector-ref" "Wrong type argument in position 1 (expecting vector)= : ~S" (#f) (#f)). guix import: warning: Failed to import package "github.com/cockroachdb/cock= roach-go". reason: (#< code: -3 message: "reference 'refs/tags/v2.0.1' not = found" class: 4>). following redirection to `https://pkg.go.dev/github.com/bmizerany/assert'... guix import: warning: Failed to import package "cloud.google.com/go/storage= ". reason: (#< code: -3 message: "reference 'refs/tags/v1.15.0' not= found" class: 4>). guix import: warning: Failed to import package "cloud.google.com/go/spanner= ". reason: (#< code: -3 message: "reference 'refs/tags/v1.21.0' not= found" class: 4>). guix import: warning: Failed to import package "go.opentelemetry.io/otel/me= tric". reason: (#< code: -3 message: "reference 'refs/tags/v0.21.0' not= found" class: 4>). guix import: warning: Failed to import package "dmitri.shuralyov.com/gpu/mt= l". reason: ("struct-vtable" "Wrong type argument in position 1 (expecting stru= ct): ~S" (#f) (#f)). following redirection to `https://pkg.go.dev/github.com/hudl/fargo'... following redirection to `https://github.com/HdrHistogram/hdrhistogram-go?g= o-get=3D1'... guix import: warning: Failed to import package "github.com/cncf/udpa/go". reason: "https://pkg.go.dev/github.com/cncf/udpa" could not be fetched: HTT= P error 404 ("Not Found"). This package and its dependencies won't be imported. guix import: warning: Failed to import package "github.com/cncf/xds/go". reason: "https://pkg.go.dev/github.com/cncf/xds" could not be fetched: HTTP= error 404 ("Not Found"). This package and its dependencies won't be imported. following redirection to `https://github.com/jtolio/gls?go-get=3D1'... following redirection to `https://github.com/openhistogram/circonusllhist?g= o-get=3D1'... warning: TLS non-fatal error: Ressource temporairement indisponible. R=C3= =A9essayer. warning: TLS non-fatal error: Ressource temporairement indisponible. R=C3= =A9essayer. warning: TLS non-fatal error: Ressource temporairement indisponible. R=C3= =A9essayer. following redirection to `https://www.gonum.org/v1/gonum?go-get=3D1'... warning: TLS non-fatal error: Ressource temporairement indisponible. R=C3= =A9essayer. warning: TLS non-fatal error: Ressource temporairement indisponible. R=C3= =A9essayer. warning: TLS non-fatal error: Ressource temporairement indisponible. R=C3= =A9essayer. guix import: warning: Failed to import package "gonum.org/v1/gonum". reason: "https://www.gonum.org/v1/gonum?go-get=3D1" could not be fetched: H= TTP error 404 ("Not Found"). This package and its dependencies won't be imported. following redirection to `https://proxy.golang.org/@v/list'... guix import: warning: Failed to import package "//". reason: "https://proxy.golang.org/@v/list" could not be fetched: HTTP error= 410 ("Gone"). This package and its dependencies won't be imported. guix import: warning: Failed to import package "cloud.google.com/go/storage= ". reason: (#< code: -3 message: "reference 'refs/tags/v1.15.0' not= found" class: 4>). following redirection to `https://pkg.go.dev/github.com/chzyer/logex'... guix import: warning: Failed to import package "google.golang.org/grpc/cmd/= protoc-gen-go-grpc". reason: (#< code: -3 message: "reference 'refs/tags/v1.1.0' not = found" class: 4>). following redirection to `https://pkg.go.dev/github.com/gobuffalo/github_fl= avored_markdown'... guix import: warning: Failed to import package "github.com/aws/aws-sdk-go-v= 2/service/s3". reason: (#< code: -3 message: "reference 'refs/tags/v1.11.0' not= found" class: 4>). guix import: warning: Failed to import package "github.com/apache/arrow/go/= arrow". reason: "https://pkg.go.dev/github.com/apache/arrow" could not be fetched: = HTTP error 404 ("Not Found"). This package and its dependencies won't be imported. guix import: warning: Failed to import package "github.com/Azure/go-autores= t/autorest/adal". reason: (#< code: -3 message: "reference 'refs/tags/v0.9.14' not= found" class: 4>). guix import: warning: Failed to import package "cloud.google.com/go/storage= ". reason: (#< code: -3 message: "reference 'refs/tags/v1.15.0' not= found" class: 4>). guix import: warning: Failed to import package "github.com/containerd/conta= inerd". reason: ("vector-ref" "Wrong type argument in position 1 (expecting vector)= : ~S" (#f) (#f)). (define-public go-github-com-cloudflare-golz4 (package [...] --8<---------------cut here---------------end--------------->8--- WDYT? All the best, simon From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 30 18:16:39 2021 Received: (at 49202) by debbugs.gnu.org; 30 Jun 2021 22:16:39 +0000 Received: from localhost ([127.0.0.1]:59011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyiVb-0007FP-Ef for submit@debbugs.gnu.org; Wed, 30 Jun 2021 18:16:39 -0400 Received: from mx1.riseup.net ([198.252.153.129]:52606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyiVa-0007F8-06 for 49202@debbugs.gnu.org; Wed, 30 Jun 2021 18:16:38 -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 4GFbKX1fcXzF490; Wed, 30 Jun 2021 15:16:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1625091392; bh=i2GyYsSpSVo8cbMzWP2u3CydMv4CrWvtfwL6Ay5eEHw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=eOU8wDfE542S/COvb3Z/ESFY+v0Sy4o+r1s5Uil/Lvynv9l1e6grN1Zoa/idODYow InvEN4L5WYoEfcAoxDV9GV9eZOW58JHm8jPpSkEbQRRntQtMcG3mw8uYA+KQr7PLH2 BRxF58+crQAiU9bx34eqRx0gkeOruIK1NP5uLxpg= X-Riseup-User-ID: 4D522D6253F672E843C53294500E7D155E168AFFB048F4CEEC90272352E146CC Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4GFbKW04phz5vkx; Wed, 30 Jun 2021 15:16:30 -0700 (PDT) Date: Wed, 30 Jun 2021 23:12:05 +0200 From: raingloom To: zimoun Subject: Re: bug#49202: guix import go type error (failed regex match?) Message-ID: <20210630231205.263467ac@riseup.net> In-Reply-To: <85sg127yk6.fsf@gmail.com> References: <20210624013203.041e526b@riseup.net> <85zgvd99tp.fsf@gmail.com> <85sg127yk6.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49202 Cc: 49202@debbugs.gnu.org, iskarian@mgsn.dev 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 Mon, 28 Jun 2021 18:18:17 +0200 zimoun wrote: > Hi, > > On ven., 25 juin 2021 at 18:40, zimoun > wrote: > > On jeu., 24 juin 2021 at 01:32, 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 > > > > Using v3 from patch#49196 [1], I get the piece below. As mentioned > > by Sarah, the parser seems poor for some dependencies. > > > > 1: > > With v4 from patch#4916 [1], I get this messages and the reports seems > clear enough. I propose to close this bug and open individual issues > to tackle each; for instance: > > - github.com/containerd/containerd > - github.com/cockroachdb/cockroach-go > - dmitri.shuralyov.com/gpu/mtl > > WDYT? Fine by me. I turned to a different migrations library in the end, so this bug isn't very pressing for me, and it's clear that yall know much more about how the importer works. So however you wanna structure the bugs, it's fine. 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 19 01:25:25 2021 Received: (at 49202) by debbugs.gnu.org; 19 Aug 2021 05:25:25 +0000 Received: from localhost ([127.0.0.1]:58133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGaYL-0006ez-37 for submit@debbugs.gnu.org; Thu, 19 Aug 2021 01:25:25 -0400 Received: from out2.migadu.com ([188.165.223.204]:51711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGaYE-0006em-G6 for 49202@debbugs.gnu.org; Thu, 19 Aug 2021 01:25:19 -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=1629350712; 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; bh=EqCBFHO2YL1uOjlF4dTq3fK4G4zVkPwI6MckDH6vuqg=; b=J6Z3Wg4KmxGFHGsZbo91HgAkoSRZyY/gpYiVBzr9oq8ehKMW9OgjEALVyDP2eLvuc4uSCc aPgyftLdyNfg0dxcyRaBwPPuvjQLDo+zSWtZBx1pUu8UVGHdvMft9AQlicqF7Rk7aat0p0 CQfYUPMjp1axuwpPHEy6sxeEUv34eSE= From: Sarah Morgensen To: Maxim Cournoyer Subject: Re: bug#49202: guix import go type error (failed regex match?) Date: Wed, 18 Aug 2021 22:25:09 -0700 In-Reply-To: Maxim Cournoyer's message of "Wed, 18 Aug 2021 23:20:08 -0400 (1 hour, 56 minutes, 24 seconds ago)" Message-ID: <86tujm3t1m.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.0 (/) X-Debbugs-Envelope-To: 49202 Cc: 49202@debbugs.gnu.org, 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 (-) Hi, Maxim Cournoyer writes: > So we're down to: > > $ 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 _) This one is happening because the go.mod served by pkg.go.dev reports that the module version is "2.0.1+incompatible". This is because the proper import path is "github.com/cockroachdb/cockroach-go/v2" as the first line of the project's go.mod states. An import for that path is successful. > > $ 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 This one is happening because the url "dmitri.shuralyov.com/gpu/mtl?go-get=1" which is used to determine the VCS type and location, does not actually have the headers it is supposed to (instead, they are written in text on the body of the page...) It should be addressed upstream, but we should also have a better error than a backtrace. > > Thanks, > > Maxim