unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#64734: Recursive hackage import fails
@ 2023-07-19 20:12 Saku Laesvuori via Bug reports for GNU Guix
  2024-05-25  7:38 ` Lars-Dominik Braun
  0 siblings, 1 reply; 4+ messages in thread
From: Saku Laesvuori via Bug reports for GNU Guix @ 2023-07-19 20:12 UTC (permalink / raw)
  To: 64734

[-- Attachment #1: Type: text/plain, Size: 1880 bytes --]

Importing hackage packages recursively fails with similar error to this:

```
$ guix import hackage linear-generics --recursive
Backtrace:
          11 (primitive-load "/home/saku/.config/guix/current/bin/gu…")
In guix/ui.scm:
   2309:7 10 (run-guix . _)
  2272:10  9 (run-guix-command _ . _)
In guix/scripts/import.scm:
    90:11  8 (guix-import . _)
In guix/scripts/import/hackage.scm:
   129:26  7 (guix-import-hackage . _)
In guix/import/utils.scm:
    651:3  6 (recursive-import _ #:repo->guix-package _ #:guix-name . #)
   613:31  5 (topological-sort _ #<procedure 7f8f515f4720 at guix/i…> …)
   655:29  4 (_ _)
In unknown file:
           3 (remove #<procedure 7f8f51610ce0 at guix/import/utils.…> …)
In guix/import/utils.scm:
   635:39  2 (exists? #<<upstream-input> name: "th-abstraction" dow…> …)
In guix/import/hackage.scm:
    128:6  1 (hackage-name->package-name #<<upstream-input> name: "t…>)
In unknown file:
           0 (string-prefix? "ghc-" #<<upstream-input> name: "th-ab…> …)

ERROR: In procedure string-prefix?:
In procedure string-prefix?: Wrong type argument in position 2 (expecting string): #<<upstream-input> name: "th-abstraction" downstream-name: "ghc-th-abstraction" type: regular min-version: any max-version: any>

```

I tried to find out what passes the `upstream-input` to
`hackage-name->package-name`, but only found out with `pk` that it seems
to only happen with the recursed dependencies and not with the root
package. I also tried to make `hackage-name->package-name` accept
`upstream-input` records but that a new error, so I assume the issue is
that something in the importer is returning `upstream-input` records
when it should return package names.

I could try to debug this further but I don't feel like I know enough
about debugging with guile nor about debugging scheme.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#64734: Recursive hackage import fails
  2023-07-19 20:12 bug#64734: Recursive hackage import fails Saku Laesvuori via Bug reports for GNU Guix
@ 2024-05-25  7:38 ` Lars-Dominik Braun
  2024-05-27  6:12   ` Saku Laesvuori via Bug reports for GNU Guix
  0 siblings, 1 reply; 4+ messages in thread
From: Lars-Dominik Braun @ 2024-05-25  7:38 UTC (permalink / raw)
  To: Saku Laesvuori; +Cc: 64734

Hi,

> $ guix import hackage linear-generics --recursive

have you ever figured out what caused this? I cannot reproduce it
currently – probably because ghc-th-abstraction is part of Guix already
and no recursion actually happens.

Lars





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#64734: Recursive hackage import fails
  2024-05-25  7:38 ` Lars-Dominik Braun
@ 2024-05-27  6:12   ` Saku Laesvuori via Bug reports for GNU Guix
  2024-05-27  6:16     ` Saku Laesvuori via Bug reports for GNU Guix
  0 siblings, 1 reply; 4+ messages in thread
From: Saku Laesvuori via Bug reports for GNU Guix @ 2024-05-27  6:12 UTC (permalink / raw)
  To: Lars-Dominik Braun; +Cc: 64734

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

> Hi,
> 
> > $ guix import hackage linear-generics --recursive
> 
> have you ever figured out what caused this?

Yes, I fixed it in https://issues.guix.gnu.org/67564 so this issue can
now be closed.

- Saku

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#64734: Recursive hackage import fails
  2024-05-27  6:12   ` Saku Laesvuori via Bug reports for GNU Guix
@ 2024-05-27  6:16     ` Saku Laesvuori via Bug reports for GNU Guix
  0 siblings, 0 replies; 4+ messages in thread
From: Saku Laesvuori via Bug reports for GNU Guix @ 2024-05-27  6:16 UTC (permalink / raw)
  To: control; +Cc: Lars-Dominik Braun, 64734

[-- Attachment #1: Type: text/plain, Size: 19 bytes --]

close 64734
thanks

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-27  6:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-19 20:12 bug#64734: Recursive hackage import fails Saku Laesvuori via Bug reports for GNU Guix
2024-05-25  7:38 ` Lars-Dominik Braun
2024-05-27  6:12   ` Saku Laesvuori via Bug reports for GNU Guix
2024-05-27  6:16     ` Saku Laesvuori 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).