From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <bug-guix-bounces+larch=yhetil.org@gnu.org>
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 qA3WMksu62VjowAAe85BDQ:P1
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 08 Mar 2024 16:27:08 +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 qA3WMksu62VjowAAe85BDQ
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 08 Mar 2024 16:27:07 +0100
X-Envelope-To: larch@yhetil.org
Authentication-Results: aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=lGiCR8SS;
	dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=ngrj0Un9;
	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=fail reason="SPF not aligned (relaxed)" header.from=wolfsden.cz (policy=none)
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1709911627;
	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=W6g4FtfhHoWFEiDYR+t8rpx1BNAus63VVZ2PG51VFdc=;
	b=BRuvt0i0rn/x1SZtD1+cpJGFfIbS62wLNaHsUlRVovsQRr2C3qEvxAXA54/M76PMa4cj54
	8vACLczg+1A3T4kUafKEK8WL9ujRQulwIw61M99pXJ2IGGkIHbn4XqjPHKEP4VrX/apuSd
	SSAIqi7L4UTr8x+VV6zG5U339jhQp+LezD7twhD2seQtxKs+GkZu9NQppnSjzVgIQeeNx7
	4aM30gGJMucsl/pDLYfQqSBF+gZ0ABtqHs4rEnYBvVBVzIeL0O1zJrBV+3bYb+uhvjCMqQ
	DThaFQnSemdjRPLvNo8bbPxa7lEt9d031m8X6lH+o3Iel0CyIdgaF3z/kU2lWQ==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=lGiCR8SS;
	dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=ngrj0Un9;
	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=fail reason="SPF not aligned (relaxed)" header.from=wolfsden.cz (policy=none)
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709911627; a=rsa-sha256; cv=none;
	b=JMxwK0IM552cgXHeE30ofm1dRo2GobLEbuLs28+SauMc/RUmMusoeH6arOMppQsMiIETYz
	CZLyl5oi1D4dP/FgADggTKk91peUH3vsentfF3X2i5t7OS4VghxZlNKpfo5u+G/8Bb/+ay
	KNljidqDgCCYC8a4Uny4uhlPmfgOt/cehJHmYpLSjQpxkorn3/F2ktLHYG9NT/0zVilVh7
	lpVt17NJpWfLMOTdkd2BrLTFgbnb4qVPGw8RcQ8zgg4Ns/dzKAE3XqxS5+fyt2PcOVuse8
	9y3W5axg7v3/FH9G2K7izM2oKDjvyqXlqPpDDsZWXYkjWacgKEn8H8xWcH1N5w==
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 7BF6C482B8
	for <larch@yhetil.org>; Fri,  8 Mar 2024 16:27:07 +0100 (CET)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-guix-bounces@gnu.org>)
	id 1ric7G-00083c-HY; Fri, 08 Mar 2024 10:26:34 -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 <Debian-debbugs@debbugs.gnu.org>)
 id 1ric7C-00083E-EF
 for bug-guix@gnu.org; Fri, 08 Mar 2024 10: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 <Debian-debbugs@debbugs.gnu.org>)
 id 1ric7C-0007Al-4x
 for bug-guix@gnu.org; Fri, 08 Mar 2024 10:26:30 -0500
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1ric7i-0002q3-0I
 for bug-guix@gnu.org; Fri, 08 Mar 2024 10:27:02 -0500
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" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-guix@gnu.org
Resent-Date: Fri, 08 Mar 2024 15:27:01 +0000
Resent-Message-ID: <handler.69617.B.170991159010858@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 69617
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ryan Barber <rfb@skyscraper.nu>
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 <debbugs-submit-bounces@debbugs.gnu.org>)
 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=
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: <Zest843Gjt-grkw4@ws>
References: <CAC1NScJ4M1FiWrA0g0AkvXxU_xR+f1Td0GYLazGekKMmQ5c_Rw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature"; boundary="m1biuhk+SBP5zYR7"
Content-Disposition: inline
In-Reply-To: <CAC1NScJ4M1FiWrA0g0AkvXxU_xR+f1Td0GYLazGekKMmQ5c_Rw@mail.gmail.com>
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-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 <bug-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-guix>
List-Post: <mailto:bug-guix@gnu.org>
List-Help: <mailto:bug-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=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: -6.98
X-Spam-Score: -6.98
X-Migadu-Queue-Id: 7BF6C482B8
X-Migadu-Scanner: mx13.migadu.com
X-TUID: 04wU1xBXw9dS


--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--