GNU bug report logs - #52362
guix import go error

Previous Next

Package: guix;

Reported by: Stephen Paul Weber <singpolyma <at> singpolyma.net>

Date: Tue, 7 Dec 2021 22:09:02 UTC

Severity: normal

Full log


Message #11 received at 52362 <at> debbugs.gnu.org (full text, mbox):

From: Stephen Paul Weber <singpolyma <at> singpolyma.net>
To: 52362 <at> debbugs.gnu.org
Subject: Re: guix import go error
Date: Tue, 11 Jan 2022 23:28:12 -0500
[Message part 1 (text/plain, 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.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 2 years and 21 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.