From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8Aw3JtIcRmRjKgAASxT56A (envelope-from ) for ; Mon, 24 Apr 2023 08:08:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CKscJtIcRmQXaAEAauVa8A (envelope-from ) for ; Mon, 24 Apr 2023 08:08:18 +0200 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 4DAE512CE0 for ; Mon, 24 Apr 2023 08:08:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqnW7-0006eL-UE; Mon, 24 Apr 2023 00:09:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppuko-0004Hh-Fn for bug-guix@gnu.org; Fri, 21 Apr 2023 13:41:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ppuko-0004nk-89 for bug-guix@gnu.org; Fri, 21 Apr 2023 13:41:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ppukn-0007Wg-OD for bug-guix@gnu.org; Fri, 21 Apr 2023 13:41:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63001: Go importer doesn't know MODULE/vX.Y version tags Resent-From: "Timo Wilken" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 21 Apr 2023 17:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63001 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 63001@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.168209880928856 (code B ref -1); Fri, 21 Apr 2023 17:41:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Apr 2023 17:40:09 +0000 Received: from localhost ([127.0.0.1]:41080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppujx-0007VM-9O for submit@debbugs.gnu.org; Fri, 21 Apr 2023 13:40:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:58630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppuju-0007VC-Td for submit@debbugs.gnu.org; Fri, 21 Apr 2023 13:40:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppuju-00047z-KJ for bug-guix@gnu.org; Fri, 21 Apr 2023 13:40:06 -0400 Received: from mx1.mythic-beasts.com ([2a00:1098:0:86:1000:0:2:1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppujs-0004K7-Ir for bug-guix@gnu.org; Fri, 21 Apr 2023 13:40:06 -0400 Received: by mailhub-cam-d.mythic-beasts.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ppujp-001FFj-G2 for bug-guix@gnu.org; Fri, 21 Apr 2023 18:40:01 +0100 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 21 Apr 2023 19:39:53 +0200 Message-Id: From: "Timo Wilken" X-Mailer: aerc 0.14.0 X-BlackCat-Spam-Score: 7 Received-SPF: pass client-ip=2a00:1098:0:86:1000:0:2:1; envelope-from=timo@twilken.net; helo=mx1.mythic-beasts.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Mon, 24 Apr 2023 00:09:24 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682316498; a=rsa-sha256; cv=none; b=D2MVjCH8sAjlpvG2iLfrp89uDqDzCZE60IRwpzyq6GxjuI4RN3ATDl4AIijZo4qGDlhzZ3 +y5A2E6naFDKRhYRxcVLSLvmzVA9o8uNTyOHYGcKlLL8WHFa3V2fnBfRya62DA2Z753K7w C39ulyTFukvfy03mYZTjFDMp/j6mBlzlRY1Bk8DXrvWa3XQ3QOydxI+wRY832ZC2A+RwgP ygJ3Blq+gximBmYPraZkbgzmw0HmG8T8kQrYyUHDtgajKpazUtDhbw6wHk+VmJbMi7ZVYF bUH7sHI5gcx3IIcwACl2vysEyYzVkL5IlyTW8442NXTXROV1n062jyle0tM1OQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682316498; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=o91cxFR/Rjnjk0jn68+rczS40Q7X5vBQmsAoYGT70jw=; b=O8jcO7GBUQ2aWVx6nKsh0J/N9UXwxIpZsCuJpk9kCAPsKGX27/J2WVi9LwynLrgy/bQYIb 7jKRbMMeZTZcXzhlPYHvIDGat7YwDW97bkH3iiVmlNG8PoHOMMCW2J0WFNZh45RBWKX/dj 0mlFBfk9KE190S71hDw0U3nzjyesGSjLjQoH15DNZN7H3OJkQAKLfg1kzWIhs48zGt186u m73SQL5VxVOFeeGZRzkKUwVwMsTnYeiyRd6c+3OC2CqDocob599sGJ7e/POgq41ZtMLFFe wAxkCBmvBOeF6hwq+L+vnm2LTEDv3oGm25ZPl2TmZJlnjPxKvDdrBd8wcumZ+g== X-Migadu-Spam-Score: -2.41 X-Spam-Score: -2.41 X-Migadu-Queue-Id: 4DAE512CE0 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-TUID: f2tISaY9v8I2 Some Golang repositories apparently use a tagging scheme where each submodule in the repo gets its own tags. In this case, the example is cloud.google.com/go and its submodules (hosted at https://github.com/googleapis/google-cloud-go). For example, for the cloud.google.com/go/longrunning submodule at version 0.4.1, the Go importer should look for a tag called "refs/tags/longrunning/v0.4.1" in the Git repository. #+begin_example $ guix import go -r cloud.google.com/go/longrunning Backtrace: 19 (primitive-load "/home/timo/.config/guix/current/bin/gu=E2=80= =A6") In guix/ui.scm: 2300:7 18 (run-guix . _) 2263:10 17 (run-guix-command _ . _) In guix/scripts/import.scm: 89:11 16 (guix-import . _) In ice-9/boot-9.scm: 1752:10 15 (with-exception-handler _ _ #:unwind? _ # _) In guix/scripts/import/go.scm: 114:22 14 (_) In guix/import/utils.scm: 638:27 13 (recursive-import _ #:repo->guix-package _ #:guix-name . #) 630:33 12 (lookup-node "cloud.google.com/go/longrunning" #f) In guix/memoization.scm: 98:0 11 (mproc "cloud.google.com/go/longrunning" # # =E2=80=A6) In unknown file: 10 (_ # =E2=80=A6) In guix/import/go.scm: 685:10 9 (_ _ #:version _ #:repo _) In ice-9/exceptions.scm: 406:15 8 (go-module->guix-package* . _) In ice-9/boot-9.scm: 1752:10 7 (with-exception-handler _ _ #:unwind? _ # _) In guix/import/go.scm: 511:19 6 (go-module->guix-package "cloud.google.com/go/longrunn=E2=80= =A6" =E2=80=A6) In guix/git.scm: 291:4 5 (update-cached-checkout _ #:ref _ #:recursive? _ # _ # _ =E2= =80=A6) 277:19 4 (resolve _) In git/reference.scm: 60:8 3 (_ _ _) In git/bindings.scm: 77:2 2 (raise-git-error _) In ice-9/boot-9.scm: 1685:16 1 (raise-exception _ #:continuable? _) 1683:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1683:16: In procedure raise-exception: Git error: reference 'refs/tags/v0.4.1' not found #+end_example The same is true for other modules, e.g. github.com/Azure/azure-sdk-for-go/sdk/internal, where the tag is called "refs/tags/sdk/internal/v1.3.0" instead: #+begin_example $ guix import go -r github.com/Azure/azure-sdk-for-go/sdk/internal Backtrace: 19 (primitive-load "/home/timo/.config/guix/current/bin/gu=E2=80= =A6") In guix/ui.scm: 2300:7 18 (run-guix . _) 2263:10 17 (run-guix-command _ . _) In guix/scripts/import.scm: 89:11 16 (guix-import . _) In ice-9/boot-9.scm: 1752:10 15 (with-exception-handler _ _ #:unwind? _ # _) In guix/scripts/import/go.scm: 114:22 14 (_) In guix/import/utils.scm: 638:27 13 (recursive-import _ #:repo->guix-package _ #:guix-name . #) 630:33 12 (lookup-node "github.com/Azure/azure-sdk-for-go/sdk/in=E2=80= =A6" =E2=80=A6) In guix/memoization.scm: 98:0 11 (mproc "github.com/Azure/azure-sdk-for-go/sdk/internal" =E2=80= =A6) In unknown file: 10 (_ # =E2=80=A6) In guix/import/go.scm: 685:10 9 (_ _ #:version _ #:repo _) In ice-9/exceptions.scm: 406:15 8 (go-module->guix-package* . _) In ice-9/boot-9.scm: 1752:10 7 (with-exception-handler _ _ #:unwind? _ # _) In guix/import/go.scm: 511:19 6 (go-module->guix-package "github.com/Azure/azure-sdk-f=E2=80= =A6" =E2=80=A6) In guix/git.scm: 291:4 5 (update-cached-checkout _ #:ref _ #:recursive? _ # _ # _ =E2= =80=A6) 277:19 4 (resolve _) In git/reference.scm: 60:8 3 (_ _ _) In git/bindings.scm: 77:2 2 (raise-git-error _) In ice-9/boot-9.scm: 1685:16 1 (raise-exception _ #:continuable? _) 1683:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1683:16: In procedure raise-exception: Git error: reference 'refs/tags/v1.3.0' not found #+end_example