* bug#49228: guix import go fails when module does not have a documenation on pkg.go.dev
@ 2021-06-25 22:30 Björn Höfling
2021-06-26 1:18 ` Sarah Morgensen via Bug reports for GNU Guix
2021-06-30 21:20 ` raingloom
0 siblings, 2 replies; 6+ messages in thread
From: Björn Höfling @ 2021-06-25 22:30 UTC (permalink / raw)
To: 49228
[-- Attachment #1: Type: text/plain, Size: 1914 bytes --]
$ ./pre-inst-env guix import go github.com/caspr-io/yamlpath
go-module->guix-package module-path: github.com/caspr-io/yamlpath
Backtrace:
In ice-9/boot-9.scm:
1752:10 8 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
7 (apply-smob/0 #<thunk 7f370ddfc0c0>)
In ice-9/boot-9.scm:
724:2 6 (call-with-prompt _ _ #<procedure default-prompt-handle?>)
In ice-9/eval.scm:
619:8 5 (_ #(#(#<directory (guile-user) 7f370de02c80>)))
In guix/ui.scm:
2147:12 4 (run-guix-command _ . _)
In guix/scripts/import.scm:
120:11 3 (guix-import . _)
In guix/scripts/import/go.scm:
118:27 2 (guix-import-go . _)
In ice-9/eval.scm:
293:34 1 (_ #(#(#(#(#(#(#(#(#(#(#(?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
619:8 0 (_ #(#(#<directory (guix import go) 7f370b75a6e0> #f)))
ice-9/eval.scm:619:8: Throw to key `match-error' with args `("match" "no matching pattern" #f)'.
If you look at the page
https://pkg.go.dev/github.com/caspr-io/yamlpath
It has no Description, because the site cannot parse license
information correctly and thus conservatively does not display any info.
Can be trivially fixed with this:
diff --git a/guix/import/go.scm b/guix/import/go.scm
index d110954664..10095b9d24 100644
--- a/guix/import/go.scm
+++ b/guix/import/go.scm
@@ -190,6 +194,7 @@ e.g. \"google.golang.org/protobuf/proto\"."
(first description))))
(match description*
(() #f) ;nothing selected
+ (#f #f)
Hope this is independent of the other go-importer-bugs we have, like:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=49202
http://issues.guix.gnu.org/issue/45984
Additionally, it would be nice if the go-module->guix-package would
print out the module it would fetch next (like I did above). Then the
broken module would be easier to find in recursive mode.
Björn
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply related [flat|nested] 6+ messages in thread
* bug#49228: guix import go fails when module does not have a documenation on pkg.go.dev
2021-06-25 22:30 bug#49228: guix import go fails when module does not have a documenation on pkg.go.dev Björn Höfling
@ 2021-06-26 1:18 ` Sarah Morgensen via Bug reports for GNU Guix
2021-06-28 6:58 ` Björn Höfling
2021-06-30 21:20 ` raingloom
1 sibling, 1 reply; 6+ messages in thread
From: Sarah Morgensen via Bug reports for GNU Guix @ 2021-06-26 1:18 UTC (permalink / raw)
To: Björn Höfling; +Cc: 49228
Hello,
Thanks for the report.
Björn Höfling <bjoern.hoefling@bjoernhoefling.de> writes:
> $ ./pre-inst-env guix import go github.com/caspr-io/yamlpath
> [...]
> ice-9/eval.scm:619:8: Throw to key `match-error' with args `("match" "no matching pattern" #f)'.
>
> If you look at the page
>
> https://pkg.go.dev/github.com/caspr-io/yamlpath
>
> It has no Description, because the site cannot parse license
> information correctly and thus conservatively does not display any info.
There is currently a patch for this (mine; though I could have named it
better, I suppose):
https://issues.guix.gnu.org/49200
> Additionally, it would be nice if the go-module->guix-package would
> print out the module it would fetch next (like I did above). Then the
> broken module would be easier to find in recursive mode.
Error reporting in the importers is currently pretty inconsistent and
could use a lot of improvement. You might be interested in taking a look
at the PATCH v3 in <https://issues.guix.gnu.org/49196> which somewhat
addresses this. Comments are always welcome! :)
Sarah
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#49228: guix import go fails when module does not have a documenation on pkg.go.dev
2021-06-26 1:18 ` Sarah Morgensen via Bug reports for GNU Guix
@ 2021-06-28 6:58 ` Björn Höfling
2021-06-28 16:24 ` zimoun
0 siblings, 1 reply; 6+ messages in thread
From: Björn Höfling @ 2021-06-28 6:58 UTC (permalink / raw)
To: Sarah Morgensen; +Cc: 49228-done
[-- Attachment #1: Type: text/plain, Size: 916 bytes --]
Hi Sarah,
On Fri, 25 Jun 2021 18:18:04 -0700
Sarah Morgensen <iskarian@mgsn.dev> wrote:
> There is currently a patch for this (mine; though I could have named
> it better, I suppose):
>
> https://issues.guix.gnu.org/49200
Nice coincident :-)
I pushed your patch as
9d9152425e96c408357d0f4961767a5c08076c13
Thanks.
> > Additionally, it would be nice if the go-module->guix-package would
> > print out the module it would fetch next (like I did above). Then
> > the broken module would be easier to find in recursive mode.
>
> Error reporting in the importers is currently pretty inconsistent and
> could use a lot of improvement. You might be interested in taking a
> look at the PATCH v3 in <https://issues.guix.gnu.org/49196> which
> somewhat addresses this. Comments are always welcome! :)
Good to know. I will have a look at these patches the next days/weeks.
Björn
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#49228: guix import go fails when module does not have a documenation on pkg.go.dev
2021-06-28 6:58 ` Björn Höfling
@ 2021-06-28 16:24 ` zimoun
0 siblings, 0 replies; 6+ messages in thread
From: zimoun @ 2021-06-28 16:24 UTC (permalink / raw)
To: 49228, Björn Höfling; +Cc: 49228-done, Sarah Morgensen
Hi,
On Mon, 28 Jun 2021 at 08:59, Björn Höfling
<bjoern.hoefling@bjoernhoefling.de> wrote:
> I pushed your patch as
>
> 9d9152425e96c408357d0f4961767a5c08076c13
Here, there is a tiny typo. :-)
--8<---------------cut here---------------start------------->8---
;;; Copyright © 2021 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
+;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
;;;
;;; This file is part of GNU Guix.
--8<---------------cut here---------------end--------------->8---
> > > Additionally, it would be nice if the go-module->guix-package would
> > > print out the module it would fetch next (like I did above). Then
> > > the broken module would be easier to find in recursive mode.
> >
> > Error reporting in the importers is currently pretty inconsistent and
> > could use a lot of improvement. You might be interested in taking a
> > look at the PATCH v3 in <https://issues.guix.gnu.org/49196> which
> > somewhat addresses this. Comments are always welcome! :)
>
> Good to know. I will have a look at these patches the next days/weeks.
If v4 is good enough to be merged, then feel free to push it. :-)
Cheers,
simon
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#49228: guix import go fails when module does not have a documenation on pkg.go.dev
2021-06-25 22:30 bug#49228: guix import go fails when module does not have a documenation on pkg.go.dev Björn Höfling
2021-06-26 1:18 ` Sarah Morgensen via Bug reports for GNU Guix
@ 2021-06-30 21:20 ` raingloom
2021-07-01 4:18 ` Sarah Morgensen via Bug reports for GNU Guix
1 sibling, 1 reply; 6+ messages in thread
From: raingloom @ 2021-06-30 21:20 UTC (permalink / raw)
To: Björn Höfling; +Cc: 49228
On Sat, 26 Jun 2021 00:30:47 +0200
Björn Höfling <bjoern.hoefling@bjoernhoefling.de> wrote:
> $ ./pre-inst-env guix import go github.com/caspr-io/yamlpath
> go-module->guix-package module-path: github.com/caspr-io/yamlpath
> Backtrace:
> In ice-9/boot-9.scm:
> 1752:10 8 (with-exception-handler _ _ #:unwind? _ # _)
> In unknown file:
> 7 (apply-smob/0 #<thunk 7f370ddfc0c0>)
> In ice-9/boot-9.scm:
> 724:2 6 (call-with-prompt _ _ #<procedure
> default-prompt-handle?>) In ice-9/eval.scm:
> 619:8 5 (_ #(#(#<directory (guile-user) 7f370de02c80>)))
> In guix/ui.scm:
> 2147:12 4 (run-guix-command _ . _)
> In guix/scripts/import.scm:
> 120:11 3 (guix-import . _)
> In guix/scripts/import/go.scm:
> 118:27 2 (guix-import-go . _)
> In ice-9/eval.scm:
> 293:34 1 (_ #(#(#(#(#(#(#(#(#(#(#(?) ?) ?) ?) ?) ?) ?) ?) ?) ?)
> ?)) 619:8 0 (_ #(#(#<directory (guix import go) 7f370b75a6e0> #f)))
>
> ice-9/eval.scm:619:8: Throw to key `match-error' with args `("match"
> "no matching pattern" #f)'.
>
> If you look at the page
>
> https://pkg.go.dev/github.com/caspr-io/yamlpath
>
> It has no Description, because the site cannot parse license
> information correctly and thus conservatively does not display any
> info.
Could we use godocs.io? It's more copyleft friendly AFAIK.
But that's just hearsay, I'm only getting into Go now, so idk much
about the services surrouding it yet.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#49228: guix import go fails when module does not have a documenation on pkg.go.dev
2021-06-30 21:20 ` raingloom
@ 2021-07-01 4:18 ` Sarah Morgensen via Bug reports for GNU Guix
0 siblings, 0 replies; 6+ messages in thread
From: Sarah Morgensen via Bug reports for GNU Guix @ 2021-07-01 4:18 UTC (permalink / raw)
To: raingloom; +Cc: Björn Höfling, 49228
Hi,
raingloom <raingloom@riseup.net> writes:
>> If you look at the page
>>
>> https://pkg.go.dev/github.com/caspr-io/yamlpath
>>
>> It has no Description, because the site cannot parse license
>> information correctly and thus conservatively does not display any
>> info.
>
> Could we use godocs.io? It's more copyleft friendly AFAIK.
> But that's just hearsay, I'm only getting into Go now, so idk much
> about the services surrouding it yet.
Right now the information from pkg.go.dev is used to populate the package's
* synopsis
* description, and
* license
sections.
As far as I can tell, godocs.io does not have any information about the
package's license... *eventually* we may want to consider writing a
license guesser of our own, as that could potentially be useful across
all of Guix.
As for description, godocs.io seems to collects description information
differently (inferiorly?) than pkg.go.dev. For example, compare:
https://godocs.io/github.com/mitchellh/go-homedir
https://pkg.go.dev/github.com/mitchellh/go-homedir
I wonder how complicated it would be to guess at a synopsis/description
ourselves? It may be worth asking the initial committers of the go
importer.
--
Sarah
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-07-01 4:21 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-25 22:30 bug#49228: guix import go fails when module does not have a documenation on pkg.go.dev Björn Höfling
2021-06-26 1:18 ` Sarah Morgensen via Bug reports for GNU Guix
2021-06-28 6:58 ` Björn Höfling
2021-06-28 16:24 ` zimoun
2021-06-30 21:20 ` raingloom
2021-07-01 4:18 ` Sarah Morgensen via Bug reports for GNU Guix
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).