GNU bug report logs -
#47591
[PATCH] import: go: Replace underscores with hyphens in package names.
Previous Next
Reported by: Xinglu Chen <public <at> yoctocell.xyz>
Date: Sun, 4 Apr 2021 09:53:02 UTC
Severity: normal
Tags: patch
Done: Leo Famulari <leo <at> famulari.name>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 47591 in the body.
You can then email your comments to 47591 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#47591
; Package
guix-patches
.
(Sun, 04 Apr 2021 09:53:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Xinglu Chen <public <at> yoctocell.xyz>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sun, 04 Apr 2021 09:53:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
As per section '16.4.2 Package Naming' in the manual, use hypens instead
of underscores in package names.
* guix/import/go.scm (go-module->guix-package-name): Replace underscores
with hyphens.
---
Maybe we should also make the linter check for underscores in package
names, and give a warning if it finds any underscores?
guix/import/go.scm | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/guix/import/go.scm b/guix/import/go.scm
index 7452b4c903..6c0231e113 100644
--- a/guix/import/go.scm
+++ b/guix/import/go.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2021 François Joulaud <francois.joulaud <at> radiofrance.com>
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
;;; Copyright © 2021 Ludovic Courtès <ludo <at> gnu.org>
+;;; Copyright © 2021 Xinglu Chen <public <at> yoctocell.xyz>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -380,9 +381,11 @@ hence the need to derive this information."
"Converts a module's path to the canonical Guix format for Go packages."
(string-downcase (string-append "go-" (string-replace-substring
(string-replace-substring
- module-path
- "." "-")
- "/" "-"))))
+ (string-replace-substring
+ module-path
+ "." "-")
+ "/" "-")
+ "_" "-"))))
(define-record-type <module-meta>
(make-module-meta import-prefix vcs repo-root)
base-commit: 86617c92c6a795668b2eca3d3c3b285cb742cb24
--
2.31.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#47591
; Package
guix-patches
.
(Sun, 04 Apr 2021 17:44:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 47591 <at> debbugs.gnu.org (full text, mbox):
On Sun, Apr 04, 2021 at 11:52:03AM +0200, Xinglu Chen wrote:
> As per section '16.4.2 Package Naming' in the manual, use hypens instead
> of underscores in package names.
>
> * guix/import/go.scm (go-module->guix-package-name): Replace underscores
> with hyphens.
Thanks! Pushed as 426ade6c8bdab243da719e369a887284368179bb
> Maybe we should also make the linter check for underscores in package
> names, and give a warning if it finds any underscores?
Definitely!
I would leave existing packages alone, however, unless they are causing
some problem.
bug closed, send any further explanations to
47591 <at> debbugs.gnu.org and Xinglu Chen <public <at> yoctocell.xyz>
Request was from
Leo Famulari <leo <at> famulari.name>
to
control <at> debbugs.gnu.org
.
(Sun, 04 Apr 2021 17:46:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#47591
; Package
guix-patches
.
(Mon, 05 Apr 2021 21:28:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 47591 <at> debbugs.gnu.org (full text, mbox):
On Sun, Apr 04 2021, Leo Famulari wrote:
>> Maybe we should also make the linter check for underscores in package
>> names, and give a warning if it finds any underscores?
>
> Definitely!
>
> I would leave existing packages alone, however, unless they are causing
> some problem.
Do you mean that there should be a whitelist for all the packages that
already have underscores in their names, or?
Also, there has been some discussion about replacing underscores in
package names[1].
[1]: https://yhetil.org/guix-devel/87v991vkpi.fsf <at> nckx
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 04 May 2021 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 357 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.