guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: import: go: Replace tildes with hyphens in packag


From: guix-commits
Subject: branch master updated: import: go: Replace tildes with hyphens in package names.
Date: Mon, 05 Jul 2021 03:55:18 -0400

This is an automated email from the git hooks/post-receive script.

leoprikler pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new b1a419e  import: go: Replace tildes with hyphens in package names.
b1a419e is described below

commit b1a419ea3fdea2bff3f7f14da4b4e336334f408d
Author: Sarah Morgensen <iskarian@mgsn.dev>
AuthorDate: Sun Jul 4 15:00:15 2021 -0700

    import: go: Replace tildes with hyphens in package names.
    
    Fixes <https://issues.guix.gnu.org/48111>.
    
    * guix/import/go.scm (go-module->guix-package-name): Replace tildes with
    hyphens.
    
    Signed-off-by: Leo Prikler <leo.prikler@student.tugraz.at>
---
 guix/import/go.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix/import/go.scm b/guix/import/go.scm
index 5e23d6a..d8f838f 100644
--- a/guix/import/go.scm
+++ b/guix/import/go.scm
@@ -430,9 +430,9 @@ hence the need to derive this information."
 (define* (go-module->guix-package-name module-path #:optional version)
   "Converts a module's path to the canonical Guix format for Go packages.
 Optionally include a VERSION string to append to the name."
-  ;; Map dot, slash and underscore characters to hyphens.
+  ;; Map dot, slash, underscore and tilde characters to hyphens.
   (let ((module-path* (string-map (lambda (c)
-                                    (if (member c '(#\. #\/ #\_))
+                                    (if (member c '(#\. #\/ #\_ #\~))
                                         #\-
                                         c))
                                   module-path)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]