mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 06:36:37 -05:00
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>
This commit is contained in:
parent
5b97804e87
commit
426ade6c8b
1 changed files with 6 additions and 3 deletions
|
@ -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 @@ (define (go-module->guix-package-name module-path)
|
|||
"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)
|
||||
|
|
Loading…
Reference in a new issue