import/go: Fix #:go formation.

Reported by MSavoritias <email@msavoritias.me> in #74992 "guix import go
package definition is not valid".  This change fixes it: instead of
"#:go 1.22" will produce "#:go go-1.22".

* guix/import/go.scm (go-module->guix-package): Fix format for #:go key
argument.

Change-Id: I9db0688b8e2970f5e90b415966d39b45505b7c8e
This commit is contained in:
Sharlatan Hellseher 2024-12-23 02:48:31 +00:00
parent 08a5048092
commit f0adcca9db
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -714,7 +714,9 @@ (define* (go-module->guix-package module-path #:key
(build-system go-build-system)
(arguments
(list ,@(if (version>? min-go-version (package-version (go-package)))
`(#:go ,(string->number min-go-version))
`(#:go ,(string->symbol
(format #f "go-~a"
(string->number min-go-version))))
'())
#:import-path ,module-path
,@(if (string=? module-path root-module-path)