mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-19 01:11:55 -05:00
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>
This commit is contained in:
parent
df97c01522
commit
b1a419ea3f
1 changed files with 2 additions and 2 deletions
|
@ -430,9 +430,9 @@ (define (vcs-qualified-module-path->root-repo-url module-path)
|
|||
(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)))
|
||||
|
|
Loading…
Reference in a new issue