GNU bug report logs - #36690
guix import hackage fails on key:value

Previous Next

Package: guix;

Reported by: Robert Vollmert <rob <at> vllmrt.net>

Date: Tue, 16 Jul 2019 14:03:01 UTC

Severity: normal

To reply to this bug, email your comments to 36690 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#36690; Package guix. (Tue, 16 Jul 2019 14:03:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Robert Vollmert <rob <at> vllmrt.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 16 Jul 2019 14:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Robert Vollmert <rob <at> vllmrt.net>
To: bug-guix <at> gnu.org
Subject: guix import hackage fails on key:value
Date: Tue, 16 Jul 2019 16:02:14 +0200
Apparently, it’s valid for a cabal file to have key-value pairs
without a space, e.g.

benchmark benchmarks
  type: exitcode-stdio-1.0
  main-is:Speed.hs
  hs-source-dirs:test
  default-language: Haskell2010
  build-depends:
    base < 5,
    criterion,
    diagrams-core,
    diagrams-lib

from http://hackage.haskell.org/package/diagrams-lib-1.4.2.3/revision/2.cabal

guix import hackage breaks on this:

$ guix import hackage diagrams-lib
Importing `diagrams-lib` from hackage
Syntax error: unexpected token : main-is:Speed.hs (at line 175, column 2)
Syntax error: unexpected end of input
guix import: error: failed to download cabal file for package 'diagrams-lib'





Information forwarded to bug-guix <at> gnu.org:
bug#36690; Package guix. (Mon, 03 Apr 2023 16:58:03 GMT) Full text and rfc822 format available.

Message #8 received at 36690 <at> debbugs.gnu.org (full text, mbox):

From: Simon Tournier <zimon.toutoune <at> gmail.com>
To: Robert Vollmert <rob <at> vllmrt.net>
Cc: 36690 <at> debbugs.gnu.org
Subject: Re: bug#36690: guix import hackage fails on key:value
Date: Mon, 03 Apr 2023 18:51:32 +0200
Hi,

This old bug#36690 [1] is about an error of the Cabal parser.

1: https://issues.guix.gnu.org/issue/36690

On mar., 16 juil. 2019 at 16:02, Robert Vollmert <rob <at> vllmrt.net> wrote:

> Apparently, it’s valid for a cabal file to have key-value pairs
> without a space, e.g.
>
> benchmark benchmarks
>   type: exitcode-stdio-1.0
>   main-is:Speed.hs
>   hs-source-dirs:test
>   default-language: Haskell2010
>   build-depends:
>     base < 5,
>     criterion,
>     diagrams-core,
>     diagrams-lib
>
> from http://hackage.haskell.org/package/diagrams-lib-1.4.2.3/revision/2.cabal
>
> guix import hackage breaks on this:
>
> $ guix import hackage diagrams-lib
> Importing `diagrams-lib` from hackage
> Syntax error: unexpected token : main-is:Speed.hs (at line 175, column 2)
> Syntax error: unexpected end of input
> guix import: error: failed to download cabal file for package 'diagrams-lib'

Now, “guix import hackage diagrams-lib” passes.  Well, I do not know if
the parser had been improved or if the Cabal file had been changed.

Without an example for testing the bug, I am in favor to close this
report.  WDYT?

Cheers,
simon




This bug report was last modified 2 years and 69 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.