GNU bug report logs -
#74992
guix import go package definition is not valid
Previous Next
Reported by: MSavoritias <email <at> msavoritias.me>
Date: Fri, 20 Dec 2024 10:34:02 UTC
Severity: normal
Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 74992 in the body.
You can then email your comments to 74992 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#74992
; Package
guix-patches
.
(Fri, 20 Dec 2024 10:34:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
MSavoritias <email <at> msavoritias.me>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Fri, 20 Dec 2024 10:34:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Doing:
@localhost ~$ guix import go code.forgejo.org/f3/gof3/v3
guix import: Importing package "code.forgejo.org/f3/gof3/v3"...
guix import: varoitus: Unable to determine repository root of
'code.forgejo.org/f3/gof3'. Guessing 'code.forgejo.org/f3/gof3'.
(define-public go-code-forgejo-org-f3-gof3
(package
(name "go-code-forgejo-org-f3-gof3")
(version "3.10.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://code.forgejo.org/f3/gof3.git")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1ysqlj5aa7bhsyghzhycngg45wclc1j2yhq1l27d5crb0pq0wfwg"))))
(build-system go-build-system)
(arguments
(list
#:go 1.22
#:import-path "code.forgejo.org/f3/gof3/v3"
#:unpack-path "code.forgejo.org/f3/gof3"))
(propagated-inputs (list go-golang-org-x-crypto
go-github-com-xanzy-go-gitlab
go-github-com-urfave-cli-v2
go-github-com-stretchr-testify
go-github-com-santhosh-tekuri-jsonschema-v6
go-github-com-hashicorp-go-version
go-github-com-google-go-cmp
go-github-com-davidmz-go-pageant
go-github-com-42wim-httpsig))
(home-page "https://code.forgejo.org/f3/gof3")
(synopsis "gof3")
(description
"As a CLI or as a library, @code{GoF3} provides a single
operation: mirroring.
The origin and destination are designated by the URL of a forge and a
path to
the resource. For instance, @@code{mirror --from-type forgejo --from
https://code.forgejo.org/forgejo/lxc-helpers --to-type F3 --to
/some/directory}
will mirror a project in a local directory using the F3 format.")
(license license:expat)))
This package definition is not valid.
#:go 1.22 should be written like #:go go-1.22
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure struct-vtable: Wrong type argument in position 1 (expecting
struct): 1.22
MSavoritias
Information forwarded
to
guix-patches <at> gnu.org
:
bug#74992
; Package
guix-patches
.
(Sat, 21 Dec 2024 00:00:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 74992 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi MSavoritias,
Thank you for reporting that!
It's known issue with importer which might need some after math manual
adjustment anyway (check license, check synopsis, check description,
check native/propagated inputs) which are not 100% accurate.
Summing all above adjust #go to correct one or remove it completely (the
current build go version is 1.21), should be not a big deal.
But, you may improve it! Take a look at the importer's code and maybe
implement the adjustment, WDYT?
--
Oleg,
go-team
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#74992
; Package
guix-patches
.
(Mon, 23 Dec 2024 01:04:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 74992 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
This is that part of importer which produces the guess:
,@(if (version>? min-go-version (package-version (go-package)))
`(#:go ,(string->number min-go-version))
'())
[Message part 2 (text/html, inline)]
Information forwarded
to
cox.katherine.e+guix <at> gmail.com, sharlatanus <at> gmail.com, guix-patches <at> gnu.org
:
bug#74992
; Package
guix-patches
.
(Mon, 23 Dec 2024 02:50:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 74992 <at> debbugs.gnu.org (full text, mbox):
Reported by MSavoritias <email <at> 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
---
guix/import/go.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/guix/import/go.scm b/guix/import/go.scm
index 32cba25b33..915846bed1 100644
--- a/guix/import/go.scm
+++ b/guix/import/go.scm
@@ -704,7 +704,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)
base-commit: 30fdffc4b5605431b28a23b03330e850b2184a76
--
2.46.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#74992
; Package
guix-patches
.
(Mon, 23 Dec 2024 09:40:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 74992 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
CC interested guixers
This change is a quite trivial but would improve large scale import task.
I need to fix the package variable formation as well, where the
#:import-path contain /v[0-9] suffix.
--
Oleg
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Sharlatan Hellseher <sharlatanus <at> gmail.com>
:
You have taken responsibility.
(Sun, 12 Jan 2025 20:09:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
MSavoritias <email <at> msavoritias.me>
:
bug acknowledged by developer.
(Sun, 12 Jan 2025 20:09:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 74992-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
Adjustment is pushed as f0adcca9db6e52aed1148a507085f4088633153a to
master.
--
Thanks,
Oleg
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 10 Feb 2025 12:24:14 GMT)
Full text and
rfc822 format available.
This bug report was last modified 186 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.