summaryrefslogtreecommitdiff
path: root/guix/import/go.scm
diff options
context:
space:
mode:
authorSarah Morgensen <iskarian@mgsn.dev>2021-07-04 15:00:15 -0700
committerLeo Prikler <leo.prikler@student.tugraz.at>2021-07-05 09:54:12 +0200
commitb1a419ea3fdea2bff3f7f14da4b4e336334f408d (patch)
tree61e0e5e491707a524f2db45b8ffed52b398cb328 /guix/import/go.scm
parentdf97c01522cfb0afed36d0cae07cb15f2aab9a4f (diff)
downloadguix-patches-b1a419ea3fdea2bff3f7f14da4b4e336334f408d.tar
guix-patches-b1a419ea3fdea2bff3f7f14da4b4e336334f408d.tar.gz
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>
Diffstat (limited to 'guix/import/go.scm')
-rw-r--r--guix/import/go.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/import/go.scm b/guix/import/go.scm
index 5e23d6a2b3..d8f838f635 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)))