From unknown Fri Aug 15 16:24:56 2025 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-Spam-Score: -2.3 (--) 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 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: -3.3 (---) 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 From unknown Fri Aug 15 16:24:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69617: guix go import fails on some version tags Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 08 Mar 2024 15:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69617 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ryan Barber Cc: 69617@debbugs.gnu.org X-Debbugs-Original-Cc: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170991159010858 (code B ref -1); Fri, 08 Mar 2024 15:27:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 Mar 2024 15:26:30 +0000 Received: from localhost ([127.0.0.1]:59291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ric7B-0002p3-HA for submit@debbugs.gnu.org; Fri, 08 Mar 2024 10:26:29 -0500 Received: from lists.gnu.org ([209.51.188.17]:57408) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1ric76-0002os-98 for submit@debbugs.gnu.org; Fri, 08 Mar 2024 10:26:27 -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 <~@wolfsden.cz>) id 1ric6Z-0007yz-Dn for bug-guix@gnu.org; Fri, 08 Mar 2024 10:25:51 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1ric6S-0006zA-4u for bug-guix@gnu.org; Fri, 08 Mar 2024 10:25:51 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id 18CF724E95D; Fri, 8 Mar 2024 15:25:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1709911541; bh=W9VN0DVjBJ1dz6xIBOc9cqUVCJEX6FWabtxZKAPDEGU=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=lGiCR8SSFJcVT2GKZtSQGchIyp2JL0axhCtWx2KadjZcxoxWDmWj6kzbZhKQRRV/N 2FgAKjo3ON9brytxCnbPMvoaob+qiJPFuE1n1p6fMlWDSxPI7Um94MOCRQN4LTL4vr iLxLjcf3oIaajiz0la53alxALmZ1NchKDR8r7sW1gRugSXSlZQv2CkDBxSmWs9zoD5 EkTGruqWNyWxXlGPXVHqwRnUpGm2Ln0EMuXAISu0j7GsTccuoK6iKL+dT+jVHQHJE+ iKbJ2Fh/Rf0yVqCv7uKN708sLnTAPBEBO62MJpx03RXH9EPYT0pUjIJD8nY28PWGOa ffQIJdOF5vsS379EgTKjQUhlpmjVMxxvwrdcbR6J8gaKG8SnTcwdRv8m6PnO7Akodl Kyb5LjNW6wlwYv/OnxyPye++1Fm0tD4x08Lzbdbr1f1h54TFp/EhHvAVRsKUU7Ltem 8mLbhrIrL3Wwe1RISbcc2o564UApW9kA5dntj0HJZdp4GqcnhTu9Li4a1pXUGYNzcz N6i6M9DWhScLj7LJ6zmNH4MUnosc7eWaQbODel2yhuf1eDO0VeuOmB8xCHDxbn6I2R 0AKgMyL02aa07HZE6L7ozqoTsjH46HK5iT0Qg8fQFhqNbUpPfwjlVvsgYG079+v682 svDRVEF1rJjpqFL/hqQijPKc= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from localhost (unknown [81.17.16.79]) by wolfsden.cz (Postfix) with ESMTPSA id 3073524FA6B; Fri, 8 Mar 2024 15:25:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1709911540; bh=W9VN0DVjBJ1dz6xIBOc9cqUVCJEX6FWabtxZKAPDEGU=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ngrj0Un9LsuwQzUTjxh75sWAnblQKYyuhqRn2HsyfBSaRgeFdhNDnxj9vj+QxEdkj pp2siH3ZUjVDDlsJVfKISrBqT5BXZ3SwsONqKzENgkl8dL7IWHKsGaw2vrZFk7r1na +Axc9J61/nw4ht9DsvWfRygia31KVqxUP6UuRVuFTVwB9X6wgiQ6kpnUPO42b5SwtA FcdLu/p54FPTgjT3MErNpzJUBQIj9edahpdpwNJ07lbUqQk3aron/5vJ1i5KvgGR+L NsDduj//D9Tp1kGzEInhihU4lmSLKaQlEASCXVgc35qE6lUcHRi8BsCJjGgOZ8B+hy g7021cUg4Z1JVFHxph7hxVzUI5T6LmDYFtTXQDIxrYG5p0pWAW8VD0Qt4HEn10fjUb byQ6qq0Y6bXw16n3/Bo4vXat/1r7obgmRrjQKEfW86BhsVovEMtUYik4QmZG3vfkE6 L6nSs5ZGnw6hr9NHZh8fdB2SzenES/wK0dP12RPwwO2iAbeZicErw6n2k5wuE6+nIQ 1Ol2IMDDDxWARAtSV3W8aL+B5ldBgwsGvVO1XJXSaw5vxs7DbL/1kfC2+cMRwDeqyc 6RuDc2m0XGfdqRn+3Qg+DZiPNETZ3NXK+v9jo2b4lmkJE/D3cCDekjNoavzaodFRWu IdkQ7YBGSfwFZdYTYsYQySa0= Date: Fri, 8 Mar 2024 16:25:39 +0100 From: Tomas Volf <~@wolfsden.cz> Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="m1biuhk+SBP5zYR7" Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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-Spam-Score: -1.3 (-) 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.3 (--) --m1biuhk+SBP5zYR7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2024-03-07 10:18:52 -0800, Ryan Barber wrote: > 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/sd= k/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? I wonder, even if you manage to import it, will go-build-system be able to = build it? That was what stopped me last time I looked into this, I reached the conclusion that current go-build-system cannot handle multiple go modules w= ith overlapping paths. Out of curiosity, what was your approach to this issue? > > 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 > Have a nice day, Tomas Volf -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --m1biuhk+SBP5zYR7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmXrLfMACgkQL7/ufbZ/ wakKPw//bIFTZR1JawFLV9oQX4iAdhcB6g4BVbAz6sN1USxjA4uMtO7T+v4XFTxq vsdGRAM124EvJnqgzgrhFnfuMalozeVLbWU5p5tvWFLKoTnuEIV1xi01n6aQOTzf 4F0swAev7+/N9BF7M6QwF5SES0CfmKsKWOKdJz8ZG9JfTcvGLJD2vQ4hiAF5bnt1 Fs7QKmZkBVOF7J6bmy8nZgf5dUtBOSEAvCLyrPjwXY8XYwmJeACBxcQb+4MHgapS vSLXoObACA4oNO5qNSPGGxgVhyqAg79Uai9Fe+0csL2tlOtPdkTWnJAAOYQoWJeX CUJv/bp+PDTxOjJpCAbbje0pIXVdWDt+RXGWUDAdhnXgELq+Ro/4OogU5wnO1FNh Kq7xWTnELUJ1ewS8jw0aTYwAUgheOO53aqzkFqPG8fSuqUHADx6HiMFCJXNzTRqB Q0RbG46/KKezna2Tx2YX7kL58CYALvE9ecgKoJKzH+CGK44CG1gV3RV0FvMtQmS3 eGZ+YeAYnMwcEgRkoMZ0SN3cTj3c3f4eENw1YNbLNagEfd4a0dF3Q+vy0O2jlWS4 V4jsDDFo5D7TFKHtk9dAyQvRpnTDmKdLCt5t0kocM3plU0h9CCYsq8ABnglRpAWQ Zm8gFn/K98mlmcoUeiSNGAZLJ0pPbB64o8VwNGHySJOlxHwnJBM= =4x4t -----END PGP SIGNATURE----- --m1biuhk+SBP5zYR7-- From unknown Fri Aug 15 16:24:56 2025 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: Sat, 09 Mar 2024 15:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69617 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tomas Volf <~@wolfsden.cz> Cc: 69617@debbugs.gnu.org X-Debbugs-Original-Cc: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17099996108315 (code B ref -1); Sat, 09 Mar 2024 15:54:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Mar 2024 15:53:30 +0000 Received: from localhost ([127.0.0.1]:34659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riz0r-0002A1-5s for submit@debbugs.gnu.org; Sat, 09 Mar 2024 10:53:30 -0500 Received: from lists.gnu.org ([209.51.188.17]:47244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riyz8-000279-72 for submit@debbugs.gnu.org; Sat, 09 Mar 2024 10:51:45 -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 1riyyb-0005nF-3Y for bug-guix@gnu.org; Sat, 09 Mar 2024 10:51:09 -0500 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1riyyY-0003Fz-FZ for bug-guix@gnu.org; Sat, 09 Mar 2024 10:51:08 -0500 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a450bedffdfso396805166b.3 for ; Sat, 09 Mar 2024 07:51:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skyscraper-nu.20230601.gappssmtp.com; s=20230601; t=1709999463; x=1710604263; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=hx6MQtGL3pUh+fLtzADVCTvDHSmpTKGoOg6Zz0pqwT8=; b=wxEyW7eBt+ksDhsoq00YCFfqxOqyg6+Y+jSV97Oam55XWYrkYa1Vq32Sioqhct8W7n WeeFz0mcM6+OjDUVfMRRJKek3Vlr4+37qyTnfbE8m7/WQ5Jb1JZZQJtcrNNVoAQGSbLr +71U2LlTDb9F9IWf2GqqrAwRsRVFzIAOGnNX5KTiKND8eqh3xO7JSapK9y0Rk0fAo0Lo y0QfjBzr77atViYzDKh0CYss7xd1t7vTZrJicV4zwmFf4pwPuYXWKeu7StG12rw0EOy3 9qT3fTZYvCSkmxrj5Cd9ljqsezIkNXGx8i4H92qTj5hznlSgThZmvrezamwgyZkxPk/e O9eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709999463; x=1710604263; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hx6MQtGL3pUh+fLtzADVCTvDHSmpTKGoOg6Zz0pqwT8=; b=GaGSBM+mIEVsO3w4KxLwG2oRBf2ik6tszD9QiJqGYKkBLQ6fnmOcuL8BTXs5nrLxMn 7VWjbvDL6Ib6yhIUTPqa4CuEYsZKTxc2XAD/nniWDe5u+cCGgBZ5QOlKfaWgQ633pLS1 PEob416J9h/UFWAbqLGPa1e53RnG7H8FeCq5T2RIwz99EZ+x5vEx6iZCFN19Anu5miLZ k45tVnfZ3XBtWzHrExRWaQXwUIfIltPWvRQD0EE83BbdRua0KbOwngj90vuNgUkY5tkG ow6wNuwnWjwm7ty/IW5GRBRrS0jTfnnfvHGh8rRtNy0Oe48TDTXoKYGtOzu5BAYed3Be vIKg== X-Gm-Message-State: AOJu0YxznhvDCSqaPYnFHMJAXtsgGVdBOI6DX/n7cPT/ODSawph4Tbjc SPg4zGNfuiuu+7YSON7nsETDffXKRLVTcibIKv2HtUxYW3V2CQ+VgEbfSA+b1X7Q/qHN9SvwNSG b0fpSKN0ejiZSWMjVukFUkPfSOeRSJwYdVzkdhreKYjw6C6N8tCuqew== X-Google-Smtp-Source: AGHT+IGwA+IblO1ylB0svsGXQu7FdnXdVK5+zzO4MzDwxqh/eKexyCF5YN8Jub2xRVJWfTlgm+tZKuAA3Bu/hT9XhPM= X-Received: by 2002:a17:906:a287:b0:a44:7ad0:8069 with SMTP id i7-20020a170906a28700b00a447ad08069mr1184198ejz.72.1709999463334; Sat, 09 Mar 2024 07:51:03 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ryan Barber Date: Sat, 9 Mar 2024 07:50: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::62e; envelope-from=rfb@skyscraper.nu; helo=mail-ej1-x62e.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-Spam-Score: -0.0 (/) X-Mailman-Approved-At: Sat, 09 Mar 2024 10:53:28 -0500 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: -3.3 (---) Hi Tomas, A little background on what I'm trying to accomplish: I have been trying to create a package for github.com/kopia/kopia@latest. Kopia is a multi-cloud encrypted backup thing and with that it has a sprawling list of dependencies to handle different backends. I've been using 'go import guix' with the -r option to attempt to recursively collect all the dependencies. That's where I found the exception with azure-sdk-for-go. The approach I came up with is to retrieve the version tag from the proxy, falling back on the prior method of generating the version tag if it is not provided. This got me past the azure-sdk-for-go issue, but now I'm encountering modules where the version ref is not predictable or listed in the proxy. I haven't encountered the problem of overlapping paths - yet! As for my goal of building a package for kopia, I will probably hand assemble the dependencies. -Ryan -Ryan On Fri, Mar 8, 2024 at 7:25=E2=80=AFAM Tomas Volf <~@wolfsden.cz> wrote: > > On 2024-03-07 10:18:52 -0800, Ryan Barber wrote: > > 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? > > I wonder, even if you manage to import it, will go-build-system be able t= o build > it? That was what stopped me last time I looked into this, I reached the > conclusion that current go-build-system cannot handle multiple go modules= with > overlapping paths. > > Out of curiosity, what was your approach to this issue? > > > > > 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 > > > > Have a nice day, > Tomas Volf > > -- > There are only two hard things in Computer Science: > cache invalidation, naming things and off-by-one errors. From unknown Fri Aug 15 16:24:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69617: guix go import fails on some version tags References: In-Reply-To: Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 17 Sep 2024 21:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69617 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 69617@debbugs.gnu.org Received: via spool by 69617-submit@debbugs.gnu.org id=B69617.172660914427823 (code B ref 69617); Tue, 17 Sep 2024 21:40:02 +0000 Received: (at 69617) by debbugs.gnu.org; 17 Sep 2024 21:39:04 +0000 Received: from localhost ([127.0.0.1]:56144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqfua-0007Eh-BU for submit@debbugs.gnu.org; Tue, 17 Sep 2024 17:39:04 -0400 Received: from mail-wm1-f49.google.com ([209.85.128.49]:56827) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqfuZ-0007EB-0q for 69617@debbugs.gnu.org; Tue, 17 Sep 2024 17:39:03 -0400 Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-42cae6bb895so60245305e9.1 for <69617@debbugs.gnu.org>; Tue, 17 Sep 2024 14:38:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726609062; x=1727213862; darn=debbugs.gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=51v2rLJpDEax8XCGJwp4eXeFc7IAJ1lYxi+qrq9ptjo=; b=im3KlYq7aTh2rztPibVE93eoY1ME5cuxzLQpHpuZj2nOAR+uI3+e9vuhwT/4tf5Un+ OumlCkClQwh8ZXCIOrjNnTu74DG/TC5FXHyxyNqpJEmb+hpvEzpF+Uw3qVX1ly6GO1Xt NNRqk/yCWm4XCylWJp5Xv3Ra8Vo0WatHr0GwLH21z1slLoZuaDGmLsK4R9SZxgCYz9Rs h7F5IhhMW5rwFfAdIvVsHXGdclFIXMXonj46dhbBJUQUA3QEiZmCb6b4M9jTT6p7gpML Ddz+yhOcjmGa8g6JuxTU6ad5u+Y6OfPrQ05+dPc5nblCzxywpMH13BJxN98vdau9EWQa 0REA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726609062; x=1727213862; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=51v2rLJpDEax8XCGJwp4eXeFc7IAJ1lYxi+qrq9ptjo=; b=PaIi1ZtfZbZxkGC3y3cq3/dAfUbGlZEJwn2FmysTkf2bVrYdtfka+GZXKgAcm8jhCM mcudvKq4GcgzZqwaLxjehjfttUot1frSuXeGolW0AFLSQjz1UKhMeq+j107oTRHqwvmv wTgSvB+SMpEy9iwxm6Dsz4/kC+5ZVn9IrZGqYxpxh3iSO5/bplEkktbrM8lRiC7hYGih DEP3Uav022amkX1zEUfB0L7l4R/C/u2+YK8UOIV73e7IpbZLNeYDYFOfPE7JC9t/hWqW YQxNO1PJWetQrtBb2SbaVRmLJMEnnQY0AWBSV1+1Xy/FIwYv4+mQgJIkDff8Qv5XCcYF Nu+Q== X-Gm-Message-State: AOJu0Yzs8PneTBzQXj1gfJUyyilorWwhsGFLKeYdnQjVaKuSZvJzxHM8 VVllfuTxq2UiWtSA/ZUcNGdzYTCdZZ6VkKFlHGe80lU9WdjnuPNxOC64TRzV X-Google-Smtp-Source: AGHT+IExvawQKglZ081FS6CgHMWb7eX6n7h4/A7YzUKr2CKMwiUQ2xWoHBePxD1p9wba/7hK1KQZxQ== X-Received: by 2002:a05:600c:4f82:b0:42c:b1ee:4b04 with SMTP id 5b1f17b1804b1-42cdb586defmr163033805e9.28.1726609061391; Tue, 17 Sep 2024 14:37:41 -0700 (PDT) Received: from guxtil (cpc100684-bagu15-2-0-cust967.1-3.cable.virginm.net. [86.8.111.200]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42da22b8b65sm115206685e9.8.2024.09.17.14.37.40 for <69617@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2024 14:37:40 -0700 (PDT) From: Sharlatan Hellseher Date: Tue, 17 Sep 2024 22:37:39 +0100 Message-ID: <875xquarmk.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) 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 (-) --=-=-= Content-Type: text/plain Hi, The fix is availale on go-team branch, please give it a try. -- Oleg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEmEeB3micIcJkGAhndtcnv/Ys0rUFAmbp9qMACgkQdtcnv/Ys 0rU8yBAAxbCemabTRsuxatLqQilkfuGMYS0x+X2x4AZ82Zs0HApZ0CQB+JJ3ojeB 9x18HV9AetiyXhzpGUCIuyzEItYegyv2igMwn6/7UozZjNwuI2V8BwegHhw1ZcMS +OVBwmDAAr/Uvbw2LwQr2qu0eu6pbHUUX4eAh7jzVGrJXx67dq4IDMiW4K93Cygw LTUdHbqJZeNbhkse0efxYYLAiqaq/QXUkmY5Yb4wDFkzoodoRbCx332yBOw/KN8y rCKnpBESLfRd19/NFJ7OLeXvo9gR9yVUoNL1WndDUgRnQpeoI8F5VIuEiqP1Mp8L AqO/C2gVATYtEYSpN8jwQIvdfiWD1/LqUL72U7FqQwSxmcQOupidDVyMuzeJauJQ 0lpLByvXKGXbZVDx4Dgga+f2rhybCI+fyERPEsJ65B6Py8Az+Q69LyBCpVwMDFtT b/tm2rTTYCeN2JClIiH+q/WswUqyJzATF8PdASULtZYFDrS/EDIMCcg30WjHi5j2 51dZ2CXE0RIJv/5kDQUYJD7ISlbFHcGpvEjpz+EiQEW5ULiCaoID0Ujyk45hKWr5 TGmmc+qLG5w7D4pouLArE6i8F0Xksdk30MSitegCNWKgq9lZNFwWA0qW/A1mOHSc iVmM9WQaGnsYLKQG9EJLVduBcP9a6EXJb5oVqvPApG8sNMzwozo= =QYkY -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Aug 15 16:24:56 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ryan Barber Subject: bug#69617: closed (guix go import fails on some version tags) Message-ID: References: <87ikpqjet2.fsf@gmail.com> X-Gnu-PR-Message: they-closed 69617 X-Gnu-PR-Package: guix Reply-To: 69617@debbugs.gnu.org Date: Tue, 04 Feb 2025 08:28:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1738657682-26820-1" This is a multi-part message in MIME format... ------------=_1738657682-26820-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #69617: guix go import fails on some version tags which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 69617@debbugs.gnu.org. --=20 69617: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D69617 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1738657682-26820-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 69617-done) by debbugs.gnu.org; 4 Feb 2025 08:27:03 +0000 Received: from localhost ([127.0.0.1]:42508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tfEGs-0006wu-H2 for submit@debbugs.gnu.org; Tue, 04 Feb 2025 03:27:03 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:53421) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tfEGq-0006wG-1A for 69617-done@debbugs.gnu.org; Tue, 04 Feb 2025 03:27:00 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-43624b2d453so61133515e9.2 for <69617-done@debbugs.gnu.org>; Tue, 04 Feb 2025 00:26:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738657613; x=1739262413; darn=debbugs.gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=ElXSGiiVupncy7/MjwH1Zgb0cO0oO171im96NAcTz5w=; b=mJoEy9HmMm58lgiu4I5rT3ZuQKo0bxCqvNupNhY3UtRj0c0MQcDpaD2JJyXHJ0M8Q7 eALLUlzr5e9E/oyD4WqgXwNhTOhHHJlKQ7F1Nu/sNLwCsR2rpDAFO+TT3yKA2nA+RySu NY2wrlNAtz+O/5A6sa4Ja/9TlCKeVUjZK7PlmYT2F+SRu8WhqVaDCmCdxDXyQv1DH8VN ADLDpOVlur7f/l89eFU3B4pKcDTA5YbYsPZJgmsn8TVNGQs7I6DV5wdc+VzkpSMpXaIS d/gJdPZ3TwzFKK8lDb6VQ6Gr2PXr8mqSx2XtNHu/Z0GH7IBPqK0y6Vq1sW7JIgt3K0qw nx6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738657613; x=1739262413; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ElXSGiiVupncy7/MjwH1Zgb0cO0oO171im96NAcTz5w=; b=dtIEm6EV1u+ni6MjgVj1+9mpuqqyeAtxnS0tm92KTBgTeaLjIHveJffmExa07qyzCI 5lIHwhKC/VwxpXnbJbU8smPfzKhU8tWhoi88aa69lvRJRP0fyF7VGjT/m6/77Nk6hmG+ VWU3Ri61HmD8Ucxw41Juv81snpWsaxXz3YsXO8LvWoVWolRCgSN5PhuAuz/1ex34pPSP jkODmQVWNwkh3ERHMUVZ5MBZP1riVme+HyKrpLz5Dl0LMijSNL7gkXmQGLGURkJ/XShw Apk/xyH3Uj56DIQq0Cao+zwNNKUFk+iIBd/Ils9dGzIR2DFJ9rmX7635QvA4stGXL2/+ 2A/w== X-Gm-Message-State: AOJu0Yw2dF4cZCSXhlIeK9JKbl1UveTBNk90aKne0WuSBUE1swOsDfwm GauzyPifORNGwMWwzDA858AC5IQbWLoCUDYO1UTLJyM0Osc+qkW9W3Ne7p3k X-Gm-Gg: ASbGnct+cejCpgeojq+xUVDnZtp/7qgWtNhLGeQBchFISaWWOFq7ITyXrwyUpwezQe4 6gx/MjVugRsWjwrxemFipJBl7oTpn6C87mdogrnoKTFpHKoI5/5KzwxSl9mnoAgx9b1Mpxagkon buUrhV0f8TMDV/CtQoxcVZOL6oTPb426A13k02ch+umfAOCYCXrmHDraz6pFCAxP28dnm7yPO1F rrHRPmAwDKJjVxAYFDr4wQD9WAlHObKh0mszBcpEcCaE1VxRQ5zXx35tIylm10YCayOTBWlHGQ/ 212o8R2dkT+qu2D9YNLBx8Ab7OHXuvNQH3SU6pBn4G5j6d18mhLHdvWD44PJvHtw2qs= X-Google-Smtp-Source: AGHT+IG+UYRHezSOdP+eNv6y8mLdzFg4i/6aZfqcIs7U/8TZF4ZrN4hHzxHwrSwDoki6b8FXs4Xjjg== X-Received: by 2002:a05:600c:3d05:b0:436:18d0:aa6e with SMTP id 5b1f17b1804b1-438dc3ab518mr281970625e9.5.1738657613284; Tue, 04 Feb 2025 00:26:53 -0800 (PST) Received: from guxtil (cpc100684-bagu15-2-0-cust967.1-3.cable.virginm.net. [86.8.111.200]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438dcc12f28sm215544525e9.7.2025.02.04.00.26.52 for <69617-done@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Feb 2025 00:26:52 -0800 (PST) From: Sharlatan Hellseher To: 69617-done@debbugs.gnu.org Subject: guix go import fails on some version tags Date: Tue, 04 Feb 2025 08:26:49 +0000 Message-ID: <87ikpqjet2.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 2.7 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, There are adjustmets in go-importer which fixed this issue. To note. This is not expected mudle name - azure-sdk-for-go/sdk/storage/azblob Content analysis details: (2.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.1 URIBL_SBL_A Contains URL's A record listed in the Spamhaus SBL blocklist [URIs: raw.githubusercontent.com] 0.6 URIBL_SBL Contains an URL's NS IP listed in the Spamhaus SBL blocklist [URIs: raw.githubusercontent.com] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:32f listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (sharlatanus[at]gmail.com) 2.0 URI_TRY_3LD "Try it" URI, suspicious hostname X-Debbugs-Envelope-To: 69617-done 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: -0.3 (/) --=-=-= Content-Type: text/plain Hi, There are adjustmets in go-importer which fixed this issue. To note. This is not expected mudle name - azure-sdk-for-go/sdk/storage/azblob This IS expected module name, as seen in go.mod github.com/Azure/azure-sdk-for-go/sdk/storage/azblob Importer produces a valid package template with correct tag extracted by Golang rules for monorepos: --8<---------------cut here---------------start------------->8--- guix time-machine --commit=2574ae3733637ead786fb3dc454369590794bc51 -- import go github.com/Azure/azure-sdk-for-go/sdk/storage/azblob guix import: Importing package "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob"... (define-public go-github-com-azure-azure-sdk-for-go-sdk-storage-azblob (package (name "go-github-com-azure-azure-sdk-for-go-sdk-storage-azblob") (version "1.6.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/Azure/azure-sdk-for-go") (commit (go-version->git-ref version #:subdir "sdk/storage/azblob")))) (file-name (git-file-name name version)) (sha256 (base32 "00l5xj1cgnkljxxynasfji51bvwfbbnvxzlz2ky6kjc5fgw44c78")))) (build-system go-build-system) (arguments (list #:import-path "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob" #:unpack-path "github.com/Azure/azure-sdk-for-go")) (propagated-inputs (list go-github-com-stretchr-testify go-github-com-azure-azure-sdk-for-go-sdk-resourcemanager-storage-armstorage go-github-com-azure-azure-sdk-for-go-sdk-internal go-github-com-azure-azure-sdk-for-go-sdk-azidentity go-github-com-azure-azure-sdk-for-go-sdk-azcore)) (home-page "https://github.com/Azure/azure-sdk-for-go") (synopsis "Azure Blob Storage module for Go") (description "Azure Blob Storage is Microsoft's object storage solution for the cloud. Blob Storage is optimized for storing massive amounts of unstructured data - data that does not adhere to a particular data model or definition, such as text or binary data. For more information, see @@url{https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction,Introduction to Azure Blob Storage}.") (license license:expat))) --8<---------------cut here---------------end--------------->8--- Closing as resolved. -- Oleg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEmEeB3micIcJkGAhndtcnv/Ys0rUFAmehz0kACgkQdtcnv/Ys 0rW8Bg//Rrz+/BBYBjdYgR9UdSAITSI875jrzmgjHU/bKeWca8lchkcXuXMQliwu FWyvBd97Mc65nOqgSdRyPM89LinRFCCEMRdFVvGtUp+ZScXuqMKdSMRL8SCRY11A 7YbEjM+0e+WnDyjLXlGub3SXSDw0e9T7TAkm4ws3cIP7QpXWp4apwVrGUqOPFt/v /muOw59XD1Gvhxwol80Fem9RGv98U3lUZZjWWrrQTaNkTYwxjFmhUe3z2cjJ+rJ3 gMBICVKCe1SXai5WHeFp7edxan7zN6EbYTo7+qSyJvN4fs8RwZZOsFDLzZkbzpJR K4JP7EgMZjo5qMxDh+LH5zxPc4HvGAs40Y7BLaznyQ8vD05DVANAeG/lcPuDYIRq fCV57JBf2J+mKUcLrqDqV6jt9wYHy8veFTpEV/xFc/4qDwWdSXBqYpV9nxqR/1p0 ZNTeKlzS156KCaejx8heW/XAaY0r+awlMxr9Bw/3lC5gPx0iB1ZRABGJHMVG5/zm mh0OLtDRoQwTHfdiH5UH/JiH7WR3skGd2cj+8+ROmP0PDS8KnYBN8yCsoN3bMott EYFam1DOSPGHKy9QmwP4QjRvcdOgjoSyaJWlohxZpDQdBApa+1/PVbsQVR8BCDEP JsaD6Ufxq/99RsLkexBDnoT7pWmIJcT0Ygz0wNdDOakFDwO7Kyk= =ttDb -----END PGP SIGNATURE----- --=-=-=-- ------------=_1738657682-26820-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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: Subject: guix go import fails on some version tags To: bug-guix@gnu.org 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit 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 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: -3.3 (---) 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 ------------=_1738657682-26820-1--