From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 11 23:28:21 2022 Received: (at 52362) by debbugs.gnu.org; 12 Jan 2022 04:28:21 +0000 Received: from localhost ([127.0.0.1]:55971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7VFF-0000Tx-1V for submit@debbugs.gnu.org; Tue, 11 Jan 2022 23:28:21 -0500 Received: from singpolyma.net ([192.99.233.116]:53375) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7VF7-0000Td-8A for 52362@debbugs.gnu.org; Tue, 11 Jan 2022 23:28:19 -0500 Received: by singpolyma.net (Postfix, from userid 1000) id 4D1034861706; Wed, 12 Jan 2022 04:28:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net; s=iweb; t=1641961692; bh=SH/G15TZ//VljzXN8yAtm9jygkq0rCyw5QHtKU9KP5o=; h=Date:From:To:Subject:References:In-Reply-To:From; b=BdwzPhxpoJ+6Y59Yd987z1pOxmXYVZo8W8X+IoRfuGvd16G2plpCOibJzJFJeBNob CZovKNfUBDTsuCi5ISYjJ4660PSiBTWB9Tjnk1IfNcoQC7Wqwbg8g24e0CsAf4iKWL s++5TY2/as0u6h5YKUNPFa7nqpZ8NKNv0bd6n/nc= Date: Tue, 11 Jan 2022 23:28:12 -0500 From: Stephen Paul Weber To: 52362@debbugs.gnu.org Subject: Re: guix import go error Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8RZ+8gMiYRXiLz18" Content-Disposition: inline In-Reply-To: Jabber-ID: singpolyma@singpolyma.net OpenPGP: id=CE519CDE; url=https://singpolyma.net/public.asc X-URL: https://singpolyma.net X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 52362 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 (-) --8RZ+8gMiYRXiLz18 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Alright, I think I have found the issue. https://go.dev/ref/mod says: > If a module is defined in a subdirectory within the repository, that is, > the module subdirectory portion of the module path is not empty, then each > tag name must be prefixed with the module subdirectory, followed by a slash. > For example, the module golang.org/x/tools/gopls is defined in the gopls > subdirectory of the repository with root path golang.org/x/tools. The version > v0.4.0 of that module must have the tag named gopls/v0.4.0 in that repository. Right now the importer code assumes that either we have a pseudo version (and thus can extract a raw commit hash) or else that the tag will be exactly (string-append "v" version) but this does not take into account the rule about subdirectory packages. --8RZ+8gMiYRXiLz18 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEWeaCw+rzmiEMpzU00RwpEc5RnN4FAmHeWNYACgkQ0RwpEc5R nN5g+Q/8DpO2RDwQqzRaiBnU7IZ5eqsvBXJG9cSBP0BRBQL9cmkHhGtp5TBYaUy4 h9YSN7NI3XMMmOXH3QMACNvRHblyjBuwe9GYqyu8G344rqKhmmWLY8FWNNOrLuJV bDVGGEP4LM+0CevrmiIRQe8QqXdULjOD55UaSuREh7cU4k/U4INJ5GHRqVkiLI2e uKUEgh7FijbDXwAduu/Ay88zclrJS3DZdMhDkydeGjvLbeveV77LSlyhVfVpScMA froV5OPIfTTEseLvg2+MNB7/CzQFa49+fAcHvS2nsUz5pQhOaXMkg//5por/ToEG Abw3+LWM51iFFkcqd9ZCPCYXXCCLLmps8orRaYAmso/Y+vD3YNo5XhVbnpW+W1Mm j3E1fDpCVxvnIYJBZxtC0Cch4IEmnNVdN9RcEzbfwTtyJp/+BnKBpQOusD6LaaVB mfHbC3qpzdnuxeo5OnKPryj/wEkoV0xvzyC2R5+LSL4KhxlYldJEsEEKDCW3LydJ /j3C9eCwkRHlEIDdx9nSaLHINV/xaVHUyqxPLF33uvOtaR1PlRX/ZHIa+diPoT/Z pVGvduSAtrvefcvEx7Z1YMhZUhHQyMrcL0YpPDgccMRssF+Btk1M0X6c9PaH0MpT obcB4gMsLL6v9vsuZRAlM9b/96ake0Th3iMM3nNdvaJxZyJFPmI= =TIPZ -----END PGP SIGNATURE----- --8RZ+8gMiYRXiLz18--