[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: import: go: Replace underscores with hyphens in p
From: |
guix-commits |
Subject: |
branch master updated: import: go: Replace underscores with hyphens in package names. |
Date: |
Sun, 04 Apr 2021 13:43:06 -0400 |
This is an automated email from the git hooks/post-receive script.
lfam pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 426ade6 import: go: Replace underscores with hyphens in package names.
426ade6 is described below
commit 426ade6c8bdab243da719e369a887284368179bb
Author: Xinglu Chen <public@yoctocell.xyz>
AuthorDate: Sun Apr 4 11:52:03 2021 +0200
import: go: Replace underscores with hyphens in package names.
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.
Signed-off-by: Leo Famulari <leo@famulari.name>
---
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 7452b4c..6c0231e 100644
--- a/guix/import/go.scm
+++ b/guix/import/go.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2021 François Joulaud <francois.joulaud@radiofrance.com>
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2021 Xinglu Chen <public@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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: import: go: Replace underscores with hyphens in package names.,
guix-commits <=