From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id UEc+B+0G6mW9tAAAe85BDQ:P1 (envelope-from ) for ; Thu, 07 Mar 2024 19:26:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id UEc+B+0G6mW9tAAAe85BDQ (envelope-from ) for ; Thu, 07 Mar 2024 19:26:53 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=skyscraper-nu.20230601.gappssmtp.com header.s=20230601 header.b=MhTc89ci; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709836012; 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:dkim-signature; bh=BDpue7hWDpmRPzvD1BVnOBlO3Z48qdjVKxsZR3ObQX4=; b=DvzqdsjkB0N0v58Aa94TzryNL9Wnv8MExFeGjjFO7D8W5+hNFwVgBgw3jJ1p51/si/7kbJ MKejhn6kHYsPIhmUAJcN+6kYfbRqt/HQMNEsuIoX7iigjPYiuZ1wK9A87J2I6GIpGf2bNv r7X2L7oBfOZIDgO+vDljEPlyClh7t2yvYz/WOd9HYBHiQKBKr51IBsyZt8SiPSMVS7jJ+6 xFDFo1iwqWWVB4paJRsf4YQrs9YhsvXy7sD5TsoJMcWtBw4Gni9Uv+vUS/I+f+FrRGpyF1 HW0WdvuVR6DLRY1Si175NtlvOk0LOVxeFlwQnywhNwvBBmoTS30mksRY1HbACw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=skyscraper-nu.20230601.gappssmtp.com header.s=20230601 header.b=MhTc89ci; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709836012; a=rsa-sha256; cv=none; b=cM9rlyeXsWJLzZYj2znxrPw7Vxoz3kitCEpoaZvWJrHeikRgR7HIVJwmSwCkIKSK+MmsAA 9hjHAd//y1cpFbzcfahJdox1G1BmAw89Jr4yGXVN6bHjWMm7TlyTnVYveebVvFpDh0ihVR /Qa10oFugTe4BKhafyWtn9PhfJlQsVzmK5HnVLILT8hfGSuefXmIpk98siDIi2sum83vn/ a8bJCsgvnieNEvdrZLKeVkhEoXvCVLnmCk0w8BbygzzKWzU0wsa6SSKKgsifSA4ddf8MAL d+7cXqv53e0rzCYGylVUWusAU39OC2RXds7cFlQYYgX5RdstQvVyaAjzLZUrQg== 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 AD74250F8A for ; Thu, 7 Mar 2024 19:26:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riIRt-0000x6-71; Thu, 07 Mar 2024 13:26:33 -0500 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 1riIRq-0000w0-V7 for bug-guix@gnu.org; Thu, 07 Mar 2024 13:26:31 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1riIRq-0000TL-Ma for bug-guix@gnu.org; Thu, 07 Mar 2024 13:26:30 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1riISM-00073W-6Z for bug-guix@gnu.org; Thu, 07 Mar 2024 13:27:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#69617: guix go import fails on some version tags Resent-From: Ryan Barber Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 07 Mar 2024 18:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69617 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 69617@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170983598227059 (code B ref -1); Thu, 07 Mar 2024 18:27:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Mar 2024 18:26:22 +0000 Received: from localhost ([127.0.0.1]:54869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riIRh-00072M-Pa for submit@debbugs.gnu.org; Thu, 07 Mar 2024 13:26:22 -0500 Received: from lists.gnu.org ([209.51.188.17]:56674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riILE-0006oR-6P for submit@debbugs.gnu.org; Thu, 07 Mar 2024 13:19:41 -0500 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 1riIKi-0006of-7z for bug-guix@gnu.org; Thu, 07 Mar 2024 13:19:08 -0500 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1riIKg-00069v-9R for bug-guix@gnu.org; Thu, 07 Mar 2024 13:19:08 -0500 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a449c5411e1so166519566b.1 for ; Thu, 07 Mar 2024 10:19:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skyscraper-nu.20230601.gappssmtp.com; s=20230601; t=1709835543; x=1710440343; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=BDpue7hWDpmRPzvD1BVnOBlO3Z48qdjVKxsZR3ObQX4=; b=MhTc89ciBag6iNllRfqoeSPQlcBrxPT/BmbIEN1ghFWhNPYg4zqA52Hy8e5d8w8Gs+ YPOnwG6zamt+8CzHgy1+0FdBm05tLtIbTrtr+nuri9dwvasEYac+f3YSmG3XergOQgsK h0t8+sB5Z2KbIqXA+HasnhIEpV9wmZSNIzs/owXtnwyIYddYlFyViSc6HHGASuXet543 sieHD1tcgZfWT8Cne85CXnG/pXyClezoo/saYBUMB55VG1e+ZUGJ3wsNqUwtmRZHQ9KV KhEV3bSVs2c62OdCXbmT6Xr5c0s/7qrf7/GoYPEgEJZQpWgrlPHf+0D39e4uxy4D6goX wimw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709835543; x=1710440343; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BDpue7hWDpmRPzvD1BVnOBlO3Z48qdjVKxsZR3ObQX4=; b=HwzlwcnV/olWfaHr+luUYejaV0XHu/GgF/19FRSl7p/w7JKy/NLk9WLyzG2ihzLv+7 JH6DL+uc+1TBKcz+MzLhC2csEYaVxUoVNCQ8dclKaMQDiVVfrnFEfFThnfGZgNVZSlzi 4Z06tVgm+9RNPL47SA/8BQLgBuIZ5HLnVIFq3S1fVkGkBNV4gX0T21+O8iInw3B26t+f oi9BtfnyvCoPl3YAbmzpUOoThMcsuA0qAZKloPk+Q4gyMWzmNErdeIp3GxK8zYX/yG91 ZtwxWx/FuotdgU8/dVKvlKCFhqKZ/0u6hnkxS9T9pyLZCyf4iPNculoLf03tcgsI86C5 eZ0A== X-Gm-Message-State: AOJu0YwIhaFtwhfcAmExoDFwVaytci+AZWkPH2Rp061QcHNeMFiOM1ld fXDuDX9cFcD0x0jZ2nN5libBY1Xf1DNJRiYqWoc/PTQRo+ist5rST2JuJiGUSu+lhAktG4/C90e OYR9bFFigeHYh9Wz59o4zhe9u/jKwKSS1v735kEt1VIm49OpJof9U5g== X-Google-Smtp-Source: AGHT+IE365pMkZS3r9Hc/jSte56h/gzbNxn70/ECEb3yYtbbRURpiUZ6FHdRn1zJoZ9V0mb9lgDr3DewKupX1Db1M0Q= X-Received: by 2002:a17:906:458:b0:a45:a731:d021 with SMTP id e24-20020a170906045800b00a45a731d021mr5272406eja.33.1709835543407; Thu, 07 Mar 2024 10:19:03 -0800 (PST) MIME-Version: 1.0 From: Ryan Barber Date: Thu, 7 Mar 2024 10:18:52 -0800 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=2a00:1450:4864:20::634; envelope-from=rfb@skyscraper.nu; helo=mail-ej1-x634.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 07 Mar 2024 13:26:20 -0500 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.47 X-Spam-Score: -5.47 X-Migadu-Queue-Id: AD74250F8A X-Migadu-Scanner: mx13.migadu.com X-TUID: 7XzPKOzQDE+W In some cases the "guix import go" command fails when attempting to checkout the source for a module using a tag which does not exist in the repo. Upon further investigation, I have found guix/import/go.scm will use the version string as tag. While this works most of the time, some module vendors use a different tagging scheme. For example, the azure-sdk-for-go repository contains many modules and the version tags are namespaced by module name. The tag for version v1.3.0 of azure-sdk-for-go/sdk/storage/azblob is storage/azblob/v1.3.0. $ curl -s 'https://proxy.golang.org/github.com/!azure/azure-sdk-for-go/sdk/= storage/azblob/@v/v1.3.0.info' | jq { "Version": "v1.3.0", "Time": "2024-02-12T16:20:44Z", "Origin": { "VCS": "git", "URL": "https://github.com/Azure/azure-sdk-for-go", "Subdir": "sdk/storage/azblob", "Ref": "refs/tags/sdk/storage/azblob/v1.3.0", "Hash": "d5dfa9296a115cc5094b14198b7114a64a490994" } } I have a patch to fix this, but I would like to discuss the approach before submitting it. Should I reply to this bug report with the patch? Here is the backtrace when attempting to run import on storage/azblob $ guix import go github.com/Azure/azure-sdk-for-go/sdk/storage/azblob Backtrace: 14 (primitive-load "/home/rfb/.config/guix/current/bin/guix") In guix/ui.scm: 2324:7 13 (run-guix . _) 2287:10 12 (run-guix-command _ . _) In guix/scripts/import.scm: 80:6 11 (guix-import . _) In ice-9/boot-9.scm: 1752:10 10 (with-exception-handler _ _ #:unwind? _ # _) In guix/scripts/import/go.scm: 116:29 9 (_) 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: 532:19 6 (go-module->guix-package "github.com/Azure/azure-sdk-f=E2=80= =A6" =E2=80=A6) In guix/git.scm: 295:4 5 (update-cached-checkout _ #:ref _ #:recursive? _ # _ # _ =E2= =80=A6) 281: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.1' not found