From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id TWggHXXrHWGOdwEAgWs5BA (envelope-from ) for ; Thu, 19 Aug 2021 07:26:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id AMBKGHXrHWGaHwAAB5/wlQ (envelope-from ) for ; Thu, 19 Aug 2021 05:26:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 94F31FA7F for ; Thu, 19 Aug 2021 07:26:12 +0200 (CEST) Received: from localhost ([::1]:39106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGaZ9-0004QU-9I for larch@yhetil.org; Thu, 19 Aug 2021 01:26:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGaZ2-0004Q9-Qs for bug-guix@gnu.org; Thu, 19 Aug 2021 01:26:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46587) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGaZ0-0001is-6p for bug-guix@gnu.org; Thu, 19 Aug 2021 01:26:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGaZ0-0006fv-3k for bug-guix@gnu.org; Thu, 19 Aug 2021 01:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49202: guix import go type error (failed regex match?) References: <20210624013203.041e526b@riseup.net> Resent-From: Sarah Morgensen Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 19 Aug 2021 05:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49202 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Received: via spool by 49202-submit@debbugs.gnu.org id=B49202.162935072525614 (code B ref 49202); Thu, 19 Aug 2021 05:26:02 +0000 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 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-Auth-User: iskarian@mgsn.dev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 49202@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629350773; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=EqCBFHO2YL1uOjlF4dTq3fK4G4zVkPwI6MckDH6vuqg=; b=XoWzKbdb+so4q2kx5jSrAdShojvhx1z+qpiGPvgBw3xkLCgIcDS/S1uVO3F0OMW55g9b9B Z6VbOO4o9NDRnNW4uUh09r3C5Jo2pB7UlnqdB1H99YSLoeNvhSb7LeaAHjnwyGkhjYtG1N o36KXwA3Sk8Bvl9kMXPtNwntf1ohkij4tk2+icKLebUeFvYglZgj2IqwNM43tFK8sIbAe0 BDgwSNDSUOSVewcqTDKLWqVHj1F/LC1CA4bwWeFrdPDpfQgpmzQiT+RQNrPHgnnS1bK3sU as8vhbN+ZfQ9LOr0FcZTvrah0c9ZhIEzZItFqf+wkGaMPMYQDivbOwhX0bF21Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629350773; a=rsa-sha256; cv=none; b=Pz03MQIHj797QnZ3bdDoxlb/w1IqYi7yPGQ2LBpI5n7WJf5fCB1rKmc9hNwJQRIJBjNGSK g2nZ5vwd3bu/nyrK+YdC8qSEz7P7BCnCmaVAPJVZgIYG2439rz5tnn3hKMd3vL8Bvkp3+3 y5BVTnBt7I8OJPhss5ms8wG0JJUgW959CvZnbtEDPIlItfZ38YspxHr2LLFNZs3pkPbks9 eEFlctV0SoUMigYyr6lannLJdFvJjllNT5RSdL007RoW0WSeM9KCBl4tghGw4FHsNyfOP9 RLt4hB6WhxKzRJ4ETZfgClpb0psFkp/Y8eijDvFYBh6cqLVgN99FBpQg+BULmA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=J6Z3Wg4K; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mgsn.dev (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=J6Z3Wg4K; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mgsn.dev (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 94F31FA7F X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9ufvIDlsCozh 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