GNU bug report logs - #48111
tilde in Go package names (eg. sourcehut hosted packages)

Previous Next

Package: guix;

Reported by: raingloom <raingloom <at> riseup.net>

Date: Thu, 29 Apr 2021 23:21:01 UTC

Severity: normal

Done: Leo Prikler <leo.prikler <at> student.tugraz.at>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Leo Prikler <leo.prikler <at> student.tugraz.at>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#48111: closed (tilde in Go package names (eg. sourcehut
 hosted packages))
Date: Mon, 05 Jul 2021 07:58:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 05 Jul 2021 09:57:14 +0200
with message-id <99ccdaecd57d5766ee5920e811a934b9b2a58394.camel <at> student.tugraz.at>
and subject line Re: bug#48111: tilde in Go package names (eg. sourcehut hosted packages)
has caused the debbugs.gnu.org bug report #48111,
regarding tilde in Go package names (eg. sourcehut hosted packages)
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
48111: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48111
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: raingloom <raingloom <at> riseup.net>
To: Guix Bugs <bug-guix <at> gnu.org>
Subject: tilde in Go package names (eg. sourcehut hosted packages)
Date: Thu, 29 Apr 2021 19:54:15 +0200
Trying to import kineto and getting this error when building it:

guix build: error: invalid character `~' in name
`go-git-sr-ht-~sircmpwn-kineto-0.0.0-20210225135222-edd4fe31f16f-checkout.drv'

I know the names are significant in go-build-system so I'm not sure how
to work around the issue without breaking anything.


[Message part 3 (message/rfc822, inline)]
From: Leo Prikler <leo.prikler <at> student.tugraz.at>
To: Sarah Morgensen <iskarian <at> mgsn.dev>
Cc: 48111-done <at> debbugs.gnu.org, raingloom <raingloom <at> riseup.net>
Subject: Re: bug#48111: tilde in Go package names (eg. sourcehut hosted
 packages)
Date: Mon, 05 Jul 2021 09:57:14 +0200
Hello,

Am Sonntag, den 04.07.2021, 15:51 -0700 schrieb Sarah Morgensen:
> It might be slightly uglier, but I think it's better to keep a
> consistent policy of "replace any invalid characters with a hyphen",
> as it is less likely to generate collisions and it provides a hint to
> the reader that there *is* a character there.
Fair enough, that's a reasonable take.

> I have attached a patch to do so below, verified that a recursive
> import of the package mentioned above builds without modification
> (well, I had to update a dependency...) and verified that there are
> not currently any go packages using a tilde in their name with:
> 
> $ egrep -r '"go-[^"]*~[^"]*"' gnu/packages
I couldn't verify this as the importer delivered 410s, but the patch
LGTM, so I pushed it.

Thanks,
Leo



This bug report was last modified 3 years and 317 days ago.

Previous Next


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